mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-21 18:37:50 +01:00
more date tooltips
This commit is contained in:
parent
a3bfa41baa
commit
66cc15971e
5 changed files with 15 additions and 7 deletions
|
@ -8,6 +8,7 @@
|
|||
%h6.text-muted.media-heading.answerbox--question-user
|
||||
= user_screen_name i.question.user, i.question.author_is_anonymous
|
||||
asked
|
||||
%span{title: i.question.created_at, data: { toggle: :tooltip, placement: :bottom }}
|
||||
= time_ago_in_words(i.question.created_at)
|
||||
ago
|
||||
- unless i.question.author_is_anonymous
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
= user_screen_name report.user
|
||||
reported a
|
||||
= report.type.sub('Reports::', '')
|
||||
%span{title: report.created_at, data: { toggle: :tooltip, placement: :bottom }}
|
||||
= time_ago_in_words(report.created_at)
|
||||
ago
|
||||
.panel-body
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
answered
|
||||
%a{href: show_user_answer_path(username: notification.target.user.screen_name, id: notification.target.id), title: "#{notification.target.content[0..40]}...", data: { toggle: :tooltip, placement: :top }}
|
||||
your question
|
||||
%span{title: notification.target.created_at, data: { toggle: :tooltip, placement: :bottom }}
|
||||
= time_ago_in_words notification.target.created_at
|
||||
ago
|
||||
.notification--icon
|
||||
|
@ -23,6 +24,7 @@
|
|||
= user_screen_name notification.target.source
|
||||
%p.notification--text
|
||||
followed you
|
||||
%span{title: notification.target.created_at, data: { toggle: :tooltip, placement: :bottom }}
|
||||
= time_ago_in_words notification.target.created_at
|
||||
ago
|
||||
.notification--icon
|
||||
|
@ -37,6 +39,7 @@
|
|||
smiled at
|
||||
%a{href: show_user_answer_path(username: notification.target.user.screen_name, id: notification.target.answer.id), title: "#{notification.target.answer.content[0..40]}...", data: { toggle: :tooltip, placement: :top }}
|
||||
your answer
|
||||
%span{title: notification.target.created_at, data: { toggle: :tooltip, placement: :bottom }}
|
||||
= time_ago_in_words notification.target.created_at
|
||||
ago
|
||||
.notification--icon
|
||||
|
@ -51,6 +54,7 @@
|
|||
commented on
|
||||
%a{href: show_user_answer_path(username: notification.target.user.screen_name, id: notification.target.answer.id), title: "#{notification.target.answer.content[0..40]}...", data: { toggle: :tooltip, placement: :top }}
|
||||
your answer
|
||||
%span{title: notification.target.created_at, data: { toggle: :tooltip, placement: :bottom }}
|
||||
= time_ago_in_words notification.target.created_at
|
||||
ago
|
||||
.notification--icon
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
%h6.text-muted.media-heading.answerbox--question-user
|
||||
= user_screen_name @question.user, @question.author_is_anonymous
|
||||
asked
|
||||
%span{title: @question.created_at, data: { toggle: :tooltip, placement: :bottom }}
|
||||
= time_ago_in_words(@question.created_at)
|
||||
ago
|
||||
%p.answerbox--question-text= @question.content
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
= user_screen_name q.user
|
||||
asked
|
||||
%a{href: show_user_question_path(q.user.screen_name, q.id)}
|
||||
%span{title: q.created_at, data: { toggle: :tooltip, placement: :bottom }}
|
||||
= time_ago_in_words(q.created_at)
|
||||
ago
|
||||
- if q.answer_count > 1
|
||||
|
|
Loading…
Reference in a new issue