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:
parent
f7c146a9e1
commit
b258583d2b
4 changed files with 43 additions and 78 deletions
|
@ -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/
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue