Remove unnecessary duplicate locales
This commit is contained in:
parent
a8362702e3
commit
b3f15fe409
|
@ -5,17 +5,17 @@
|
|||
.notification__heading
|
||||
%img.avatar-xs{ src: notification.target.user.profile_picture.url(:small) }
|
||||
- if notification.target.answer.user == current_user
|
||||
= t(".active.heading_html",
|
||||
= t(".heading_html",
|
||||
user: user_screen_name(notification.target.user),
|
||||
answer: link_to(t(".active.link_text"), show_user_answer_path(username: notification.target.user.screen_name, id: notification.target.answer.id)),
|
||||
time: time_tooltip(notification.target))
|
||||
- elsif notification.target.user == notification.target.answer.user
|
||||
= t(".passive.heading_html",
|
||||
= t(".heading_html",
|
||||
user: user_screen_name(notification.target.user),
|
||||
answer: link_to(t(".passive.link_text"), show_user_answer_path(username: notification.target.user.screen_name, id: notification.target.answer.id)),
|
||||
time: time_tooltip(notification.target))
|
||||
- else
|
||||
= t(".other.heading_html",
|
||||
= t(".heading_html",
|
||||
user: user_screen_name(notification.target.user),
|
||||
answer: link_to(t(".other.link_text", user: user_screen_name(notification.target.answer.user)), show_user_answer_path(username: notification.target.user.screen_name, id: notification.target.answer.id)),
|
||||
time: time_tooltip(notification.target))
|
||||
|
|
|
@ -5,12 +5,12 @@
|
|||
.notification__heading
|
||||
%img.avatar-xs{ src: notification.target.user.profile_picture.url(:small) }
|
||||
- if notification.target.parent_type == 'Answer'
|
||||
= t(".#{notification.target.parent_type.downcase}.heading_html",
|
||||
= t(".heading_html",
|
||||
user: user_screen_name(notification.target.user),
|
||||
type: link_to(t(".#{notification.target.parent_type.downcase}.link_text"), show_user_answer_path(username: notification.target.user.screen_name, id: notification.target.parent.id)),
|
||||
time: time_tooltip(notification.target))
|
||||
- elsif notification.target.parent_type == 'Comment'
|
||||
= t(".#{notification.target.parent_type.downcase}.heading_html",
|
||||
= t(".heading_html",
|
||||
user: user_screen_name(notification.target.user),
|
||||
type: link_to(t(".#{notification.target.parent_type.downcase}.link_text"), show_user_answer_path(username: notification.target.user.screen_name, id: notification.target.parent.answer.id)),
|
||||
time: time_tooltip(notification.target))
|
||||
|
|
|
@ -118,23 +118,18 @@ en:
|
|||
heading_html: "%{user} answered %{question} %{time} ago"
|
||||
link_text: "your question"
|
||||
comment:
|
||||
heading: "%{user} commented on %{answer} %{time} ago"
|
||||
heading_html: "%{user} commented on %{answer} %{time} ago"
|
||||
active:
|
||||
heading_html: :notifications.type.comment.heading
|
||||
link_text: "your answer"
|
||||
passive:
|
||||
heading_html: :notifications.type.comment.heading
|
||||
link_text: "their answer"
|
||||
other:
|
||||
heading_html: :notifications.type.comment.heading
|
||||
link_text: "%{user}'s answer"
|
||||
reaction:
|
||||
heading: "%{user} smiled %{type} %{time} ago"
|
||||
heading_html: "%{user} smiled %{type} %{time} ago"
|
||||
answer:
|
||||
heading_html: :notifications.type.reaction.heading
|
||||
link_text: "your answer"
|
||||
comment:
|
||||
heading_html: :notifications.type.reaction.heading
|
||||
link_text: "your comment"
|
||||
follow:
|
||||
heading_html: "followed you %{time} ago"
|
||||
|
|
Loading…
Reference in New Issue