Add new translations for profile badges

This commit is contained in:
Andreas Nedbal 2022-07-31 16:02:33 +02:00
parent 77abb202d7
commit f22c69cfe8
2 changed files with 9 additions and 4 deletions

View File

@ -13,19 +13,19 @@
- if user.banned? - if user.banned?
%span.badge.badge-dark %span.badge.badge-dark
%i.fa.fa-fw.fa-ban %i.fa.fa-fw.fa-ban
= t 'views.user.title.banned' = t('.badge.banned')
- if user.following? current_user - if user.following? current_user
.badge.badge-light .badge.badge-light
= t 'views.user.follows_you' = t('.badge.follows_you')
- if user_signed_in? && current_user.has_role?(:administrator) - if user_signed_in? && current_user.has_role?(:administrator)
- if user.has_role?(:administrator) - if user.has_role?(:administrator)
%span.badge.badge-danger %span.badge.badge-danger
%i.fa.fa-fw.fa-flask %i.fa.fa-fw.fa-flask
= t 'views.user.title.admin' = t('.badge.admin')
- if user.has_role?(:moderator) - if user.has_role?(:moderator)
%span.badge.badge-success %span.badge.badge-success
%i.fa.fa-fw.fa-users %i.fa.fa-fw.fa-users
= t 'views.user.title.moderator' = t('.badge.moderator')
- unless user.profile.description.blank? - unless user.profile.description.blank?
.profile__biography .profile__biography
= markdown user.profile.description = markdown user.profile.description

View File

@ -514,6 +514,11 @@ en:
ban: "Ban Control" ban: "Ban Control"
title: "Actions" title: "Actions"
list: "Manage list memberships" list: "Manage list memberships"
profile:
admin: "Admin"
banned: "Banned"
follows_you: "Follows you"
moderator: "Moderator"
question: question:
show: show:
questionbox: questionbox: