diff options
author | Takeshi Umeda <noel.yoshiba@gmail.com> | 2019-12-05 08:50:40 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2019-12-05 00:50:40 +0100 |
commit | 04582e3c3e7db716c32261583a956d889c438254 (patch) | |
tree | df54f683f8b5b1eadcf753a3b2098b961a06544e /app/helpers/accounts_helper.rb | |
parent | f43f1e01840cd0bad7a88c90d9ea44b183a2a15d (diff) |
Remove some duplicate methods from StatusHelper and reflect changes to AccountHelper (#12545)
Diffstat (limited to 'app/helpers/accounts_helper.rb')
-rw-r--r-- | app/helpers/accounts_helper.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/helpers/accounts_helper.rb b/app/helpers/accounts_helper.rb index 5b060a18170..99815be7be4 100644 --- a/app/helpers/accounts_helper.rb +++ b/app/helpers/accounts_helper.rb @@ -62,6 +62,8 @@ module AccountsHelper def account_badge(account, all: false) if account.bot? content_tag(:div, content_tag(:div, t('accounts.roles.bot'), class: 'account-role bot'), class: 'roles') + elsif account.group? + content_tag(:div, content_tag(:div, t('accounts.roles.group'), class: 'account-role group'), class: 'roles') elsif (Setting.show_staff_badge && account.user_staff?) || all content_tag(:div, class: 'roles') do if all && !account.user_staff? |