mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 14:19:53 +01:00
Add translations for inbox moderation
This commit is contained in:
parent
be8ba63b95
commit
10ead35209
5 changed files with 15 additions and 12 deletions
8
app/views/moderation/inbox/_header.haml
Normal file
8
app/views/moderation/inbox/_header.haml
Normal file
|
@ -0,0 +1,8 @@
|
|||
.card.question--fixed{ class: hidden ? 'question--hidden' : '', tabindex: hidden ? -1 : '', aria: { hidden: hidden } }
|
||||
.container
|
||||
.card-body
|
||||
.media
|
||||
%a.pull-left{ href: show_user_profile_path(user.screen_name) }
|
||||
%img.answerbox__question-user-avatar.avatar-md{ src: user.profile_picture.url(:medium) }
|
||||
.media-body
|
||||
= t(".title_html", screen_name: user.screen_name, user_id: user.id)
|
|
@ -1,16 +1,8 @@
|
|||
- provide(:title, generate_title(t(".title", user: @user.screen_name)))
|
||||
|
||||
.card.question--fixed
|
||||
.container
|
||||
.card-body
|
||||
.media
|
||||
%a.pull-left{ href: show_user_profile_path(@user.screen_name) }
|
||||
%img.answerbox__question-user-avatar.avatar-md{ src: @user.profile_picture.url(:medium) }
|
||||
.media-body
|
||||
Viewing inbox for
|
||||
%br
|
||||
%strong= @user.screen_name
|
||||
= " (##{@user.id})"
|
||||
= render "header", user: @user, hidden: false
|
||||
= render "header", user: @user, hidden: true
|
||||
|
||||
.container-lg.container--main
|
||||
#entries
|
||||
- @inboxes.each do |i|
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
- if current_user.mod? && user != current_user
|
||||
%a.dropdown-item{ href: mod_inbox_index_path(user: user.screen_name) }
|
||||
%i.fa.fa-inbox
|
||||
View inbox
|
||||
= t("views.actions.view_inbox")
|
||||
- if current_user.has_role? :administrator
|
||||
%a.dropdown-item{ href: rails_admin_path_for_resource(user), target: '_blank' }
|
||||
%i.fa.fa-cogs
|
||||
|
|
|
@ -221,6 +221,7 @@ en:
|
|||
subscribe: "Subscribe"
|
||||
unsubscribe: "Unsubscribe"
|
||||
view: "View comment smiles"
|
||||
view_inbox: "View inbox"
|
||||
load: "Load more"
|
||||
follow: "Follow"
|
||||
unfollow: "Unfollow"
|
||||
|
|
|
@ -328,5 +328,7 @@ en:
|
|||
title: "Export"
|
||||
moderation:
|
||||
inbox:
|
||||
header:
|
||||
title_html: "Viewing inbox for <br><strong>%{screen_name}</strong> (#%{user_id})"
|
||||
index:
|
||||
title: "Inbox for %{user}"
|
||||
|
|
Loading…
Reference in a new issue