forked from asonix/mastodon
If a status with a hashtag becomes very popular, it stands to reason that the hashtag should have a chance at trending Fix no stats being recorded for hashtags that are not allowed to trend, and stop ignoring bots Remove references to hashtags in profile directory from the code and the admin UI
43 lines
1.2 KiB
Text
43 lines
1.2 KiB
Text
- content_for :page_title do
|
|
= "##{@tag.name}"
|
|
|
|
.dashboard__counters
|
|
%div
|
|
= link_to tag_url(@tag), target: '_blank', rel: 'noopener noreferrer' do
|
|
.dashboard__counters__num= number_with_delimiter @accounts_today
|
|
.dashboard__counters__label= t 'admin.tags.accounts_today'
|
|
%div
|
|
%div
|
|
.dashboard__counters__num= number_with_delimiter @accounts_week
|
|
.dashboard__counters__label= t 'admin.tags.accounts_week'
|
|
|
|
%hr.spacer/
|
|
|
|
= simple_form_for @tag, url: admin_tag_path(@tag.id) do |f|
|
|
= render 'shared/error_messages', object: @tag
|
|
|
|
.fields-group
|
|
= f.input :name, wrapper: :with_block_label
|
|
|
|
.fields-group
|
|
= f.input :usable, as: :boolean, wrapper: :with_label
|
|
= f.input :trendable, as: :boolean, wrapper: :with_label
|
|
= f.input :listable, as: :boolean, wrapper: :with_label
|
|
|
|
.actions
|
|
= f.button :button, t('generic.save_changes'), type: :submit
|
|
|
|
%hr.spacer/
|
|
|
|
%h3= t 'admin.tags.breakdown'
|
|
|
|
.table-wrapper
|
|
%table.table
|
|
%tbody
|
|
- total = @usage_by_domain.sum(&:last).to_f
|
|
|
|
- @usage_by_domain.each do |(domain, count)|
|
|
%tr
|
|
%th= domain || site_hostname
|
|
%td= number_to_percentage((count / total) * 100, precision: 1)
|
|
%td= number_with_delimiter count
|