mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-22 00:37:48 +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
|
%h6.text-muted.media-heading.answerbox--question-user
|
||||||
= user_screen_name i.question.user, i.question.author_is_anonymous
|
= user_screen_name i.question.user, i.question.author_is_anonymous
|
||||||
asked
|
asked
|
||||||
|
%span{title: i.question.created_at, data: { toggle: :tooltip, placement: :bottom }}
|
||||||
= time_ago_in_words(i.question.created_at)
|
= time_ago_in_words(i.question.created_at)
|
||||||
ago
|
ago
|
||||||
- unless i.question.author_is_anonymous
|
- unless i.question.author_is_anonymous
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
= user_screen_name report.user
|
= user_screen_name report.user
|
||||||
reported a
|
reported a
|
||||||
= report.type.sub('Reports::', '')
|
= report.type.sub('Reports::', '')
|
||||||
|
%span{title: report.created_at, data: { toggle: :tooltip, placement: :bottom }}
|
||||||
= time_ago_in_words(report.created_at)
|
= time_ago_in_words(report.created_at)
|
||||||
ago
|
ago
|
||||||
.panel-body
|
.panel-body
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
answered
|
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 }}
|
%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
|
your question
|
||||||
|
%span{title: notification.target.created_at, data: { toggle: :tooltip, placement: :bottom }}
|
||||||
= time_ago_in_words notification.target.created_at
|
= time_ago_in_words notification.target.created_at
|
||||||
ago
|
ago
|
||||||
.notification--icon
|
.notification--icon
|
||||||
|
@ -23,6 +24,7 @@
|
||||||
= user_screen_name notification.target.source
|
= user_screen_name notification.target.source
|
||||||
%p.notification--text
|
%p.notification--text
|
||||||
followed you
|
followed you
|
||||||
|
%span{title: notification.target.created_at, data: { toggle: :tooltip, placement: :bottom }}
|
||||||
= time_ago_in_words notification.target.created_at
|
= time_ago_in_words notification.target.created_at
|
||||||
ago
|
ago
|
||||||
.notification--icon
|
.notification--icon
|
||||||
|
@ -37,6 +39,7 @@
|
||||||
smiled at
|
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 }}
|
%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
|
your answer
|
||||||
|
%span{title: notification.target.created_at, data: { toggle: :tooltip, placement: :bottom }}
|
||||||
= time_ago_in_words notification.target.created_at
|
= time_ago_in_words notification.target.created_at
|
||||||
ago
|
ago
|
||||||
.notification--icon
|
.notification--icon
|
||||||
|
@ -51,6 +54,7 @@
|
||||||
commented on
|
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 }}
|
%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
|
your answer
|
||||||
|
%span{title: notification.target.created_at, data: { toggle: :tooltip, placement: :bottom }}
|
||||||
= time_ago_in_words notification.target.created_at
|
= time_ago_in_words notification.target.created_at
|
||||||
ago
|
ago
|
||||||
.notification--icon
|
.notification--icon
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
%h6.text-muted.media-heading.answerbox--question-user
|
%h6.text-muted.media-heading.answerbox--question-user
|
||||||
= user_screen_name @question.user, @question.author_is_anonymous
|
= user_screen_name @question.user, @question.author_is_anonymous
|
||||||
asked
|
asked
|
||||||
|
%span{title: @question.created_at, data: { toggle: :tooltip, placement: :bottom }}
|
||||||
= time_ago_in_words(@question.created_at)
|
= time_ago_in_words(@question.created_at)
|
||||||
ago
|
ago
|
||||||
%p.answerbox--question-text= @question.content
|
%p.answerbox--question-text= @question.content
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
= user_screen_name q.user
|
= user_screen_name q.user
|
||||||
asked
|
asked
|
||||||
%a{href: show_user_question_path(q.user.screen_name, q.id)}
|
%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)
|
= time_ago_in_words(q.created_at)
|
||||||
ago
|
ago
|
||||||
- if q.answer_count > 1
|
- if q.answer_count > 1
|
||||||
|
|
Loading…
Reference in a new issue