|
56 | 56 |
|
57 | 57 | = render 'bio', account: @account |
58 | 58 |
|
59 | | - - unless @endorsed_accounts.empty? |
| 59 | + - if @endorsed_accounts.empty? && @account.id == current_account&.id |
| 60 | + .placeholder-widget= t('accounts.endorsements_hint') |
| 61 | + - elsif !@endorsed_accounts.empty? |
60 | 62 | .endorsements-widget |
61 | 63 | %h4= t 'accounts.choices_html', name: content_tag(:bdi, display_name(@account, custom_emojify: true)) |
62 | 64 |
|
63 | 65 | - @endorsed_accounts.each do |account| |
64 | 66 | = account_link_to account |
65 | 67 |
|
66 | | - - @account.featured_tags.order(statuses_count: :desc).each do |featured_tag| |
67 | | - .directory__tag{ class: params[:tag] == featured_tag.name ? 'active' : nil } |
68 | | - = link_to short_account_tag_path(@account, featured_tag.tag) do |
69 | | - %h4 |
70 | | - = fa_icon 'hashtag' |
71 | | - = featured_tag.name |
72 | | - %small |
73 | | - - if featured_tag.last_status_at.nil? |
74 | | - = t('accounts.nothing_here') |
75 | | - - else |
76 | | - %time.formatted{ datetime: featured_tag.last_status_at.iso8601, title: l(featured_tag.last_status_at) }= l featured_tag.last_status_at |
77 | | - .trends__item__current= number_to_human featured_tag.statuses_count, strip_insignificant_zeros: true |
| 68 | + - if @featured_hashtags.empty? && @account.id == current_account&.id |
| 69 | + .placeholder-widget |
| 70 | + = t('accounts.featured_tags_hint') |
| 71 | + = link_to settings_featured_tags_path do |
| 72 | + = t('featured_tags.add_new') |
| 73 | + = fa_icon 'chevron-right fw' |
| 74 | + - else |
| 75 | + - @featured_hashtags.each do |featured_tag| |
| 76 | + .directory__tag{ class: params[:tag] == featured_tag.name ? 'active' : nil } |
| 77 | + = link_to short_account_tag_path(@account, featured_tag.tag) do |
| 78 | + %h4 |
| 79 | + = fa_icon 'hashtag' |
| 80 | + = featured_tag.name |
| 81 | + %small |
| 82 | + - if featured_tag.last_status_at.nil? |
| 83 | + = t('accounts.nothing_here') |
| 84 | + - else |
| 85 | + %time.formatted{ datetime: featured_tag.last_status_at.iso8601, title: l(featured_tag.last_status_at) }= l featured_tag.last_status_at |
| 86 | + .trends__item__current= number_to_human featured_tag.statuses_count, strip_insignificant_zeros: true |
78 | 87 |
|
79 | 88 | = render 'application/sidebar' |
0 commit comments