Use new date format in notifications
This commit is contained in:
parent
444acaf548
commit
07cafb9b30
|
@ -6,8 +6,9 @@
|
|||
= render AvatarComponent.new(user: notification.target.user, size: "xs")
|
||||
= t(".heading_html",
|
||||
user: user_screen_name(notification.target.user),
|
||||
question: link_to(t(".link_text"), answer_path(username: notification.target.user.screen_name, id: notification.target.id), target: "_top"),
|
||||
time: time_tooltip(notification.target))
|
||||
question: link_to(t(".link_text"), answer_path(username: notification.target.user.screen_name, id: notification.target.id), target: "_top"))
|
||||
·
|
||||
= time_tooltip(notification.target)
|
||||
.list-group
|
||||
.list-group-item
|
||||
%h6.notification__list-heading= t("activerecord.models.question.one")
|
||||
|
|
|
@ -10,16 +10,14 @@
|
|||
answer: link_to(t(".active.link_text"),
|
||||
answer_path(username: notification.target.user.screen_name,
|
||||
id: notification.target.answer.id),
|
||||
target: "_top"),
|
||||
time: time_tooltip(notification.target))
|
||||
target: "_top"))
|
||||
- elsif notification.target.user == notification.target.answer.user
|
||||
= t(".heading_html",
|
||||
user: user_screen_name(notification.target.user),
|
||||
answer: link_to(t(".passive.link_text"),
|
||||
answer_path(username: notification.target.user.screen_name,
|
||||
id: notification.target.answer.id),
|
||||
target: "_top"),
|
||||
time: time_tooltip(notification.target))
|
||||
target: "_top"))
|
||||
- else
|
||||
= t(".heading_html",
|
||||
user: user_screen_name(notification.target.user),
|
||||
|
@ -27,8 +25,9 @@
|
|||
user: user_screen_name(notification.target.answer.user, url: false)),
|
||||
answer_path(username: notification.target.user.screen_name,
|
||||
id: notification.target.answer.id),
|
||||
target: "_top"),
|
||||
time: time_tooltip(notification.target))
|
||||
target: "_top"))
|
||||
·
|
||||
= time_tooltip(notification.target)
|
||||
.list-group
|
||||
.list-group-item
|
||||
%h6.notification__list-heading= t("activerecord.models.answer.one")
|
||||
|
|
|
@ -10,16 +10,16 @@
|
|||
type: link_to(t(".#{notification.target.parent_type.downcase}.link_text"),
|
||||
answer_path(username: notification.target.user.screen_name,
|
||||
id: notification.target.parent.id),
|
||||
target: "_top"),
|
||||
time: time_tooltip(notification.target))
|
||||
target: "_top"))
|
||||
- elsif notification.target.parent_type == "Comment"
|
||||
= t(".heading_html",
|
||||
user: user_screen_name(notification.target.user),
|
||||
type: link_to(t(".#{notification.target.parent_type.downcase}.link_text"),
|
||||
answer_path(username: notification.target.user.screen_name,
|
||||
id: notification.target.parent.answer.id),
|
||||
target: "_top"),
|
||||
time: time_tooltip(notification.target))
|
||||
target: "_top"))
|
||||
·
|
||||
= time_tooltip(notification.target)
|
||||
.list-group
|
||||
.list-group-item
|
||||
%h6.notification__list-heading= t("activerecord.models.#{notification.target.parent_type.downcase}.one")
|
||||
|
|
|
@ -343,10 +343,10 @@ en:
|
|||
none: "No new notifications."
|
||||
type:
|
||||
answer:
|
||||
heading_html: "%{user} answered %{question} %{time} ago"
|
||||
heading_html: "%{user} answered %{question}"
|
||||
link_text: "your question"
|
||||
comment:
|
||||
heading_html: "%{user} commented on %{answer} %{time} ago"
|
||||
heading_html: "%{user} commented on %{answer}"
|
||||
active:
|
||||
link_text: "your answer"
|
||||
passive:
|
||||
|
@ -358,7 +358,7 @@ en:
|
|||
text_html: "Head over to %{settings_export} to download it."
|
||||
settings_export: "the settings page"
|
||||
reaction:
|
||||
heading_html: "%{user} smiled %{type} %{time} ago"
|
||||
heading_html: "%{user} smiled %{type}"
|
||||
answer:
|
||||
link_text: "your answer"
|
||||
comment:
|
||||
|
|
Loading…
Reference in New Issue