forked from asonix/mastodon
47 lines
1.5 KiB
Text
47 lines
1.5 KiB
Text
- content_for :page_title do
|
|
= "##{@tag.name}"
|
|
|
|
.dashboard__counters
|
|
%div
|
|
= link_to web_url("timelines/tag/#{@tag.name}") 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'
|
|
%div
|
|
= link_to explore_hashtag_path(@tag) do
|
|
.dashboard__counters__num= number_with_delimiter @tag.accounts_count
|
|
.dashboard__counters__label= t 'admin.tags.directory'
|
|
|
|
%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, disabled: !Setting.trends
|
|
= f.input :listable, as: :boolean, wrapper: :with_label, disabled: !Setting.profile_directory
|
|
|
|
.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(&:statuses_count).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
|