From 3fda862ea004c1c417a442b2a8f38a67d0535979 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Fri, 19 Jul 2019 14:53:13 -0500 Subject: add badge to ui for locked accounts --- app/helpers/stream_entries_helper.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'app/helpers') 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? -- cgit