more date tooltips

This commit is contained in:
Andreas N 2015-02-20 00:40:41 +01:00
parent a3bfa41baa
commit 66cc15971e
5 changed files with 15 additions and 7 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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