Fix hashtag link to directory in AdminUI (#12005)
* Fixed not to generate link if no user used hashtag in directory * Added missing translation for AdminUI custom emojis * run yarn manage:translations en
This commit is contained in:
@ -11,9 +11,14 @@
|
||||
.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'
|
||||
- if @tag.accounts_count > 0
|
||||
= link_to explore_hashtag_path(@tag) do
|
||||
.dashboard__counters__num= number_with_delimiter @tag.accounts_count
|
||||
.dashboard__counters__label= t 'admin.tags.directory'
|
||||
- else
|
||||
%div
|
||||
.dashboard__counters__num= number_with_delimiter @tag.accounts_count
|
||||
.dashboard__counters__label= t 'admin.tags.directory'
|
||||
|
||||
%hr.spacer/
|
||||
|
||||
|
Reference in New Issue
Block a user