diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-07-19 14:53:13 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-07-19 14:53:13 -0500 |
commit | 3fda862ea004c1c417a442b2a8f38a67d0535979 (patch) | |
tree | 5f5610c3b1042d46bbd5cd2e5991b511583f4c68 /app/helpers | |
parent | bc22ab034bb9bbb48fb2cc93c1a617cbcd14ff9d (diff) |
add badge to ui for locked accounts
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/stream_entries_helper.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/helpers/stream_entries_helper.rb b/app/helpers/stream_entries_helper.rb index fe8505f3b..ed58efdb4 100644 --- a/app/helpers/stream_entries_helper.rb +++ b/app/helpers/stream_entries_helper.rb @@ -37,6 +37,7 @@ module StreamEntriesHelper def account_badge(account, all: false) content_tag(:div, class: 'roles') do roles = [] + roles << content_tag(:div, t('accounts.roles.locked'), class: 'account-role locked') if account.locked? roles << content_tag(:div, t('accounts.roles.bot'), class: 'account-role bot') if account.bot? roles << content_tag(:div, t('accounts.roles.adult'), class: 'account-role adult') if account.adult_content? roles << content_tag(:div, t('accounts.roles.gently'), class: 'account-role gently') if account.gently? |