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,7 +8,8 @@
%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
= time_ago_in_words(i.question.created_at) %span{title: i.question.created_at, data: { toggle: :tooltip, placement: :bottom }}
= time_ago_in_words(i.question.created_at)
ago ago
- unless i.question.author_is_anonymous - unless i.question.author_is_anonymous
- if i.question.answer_count > 0 - if i.question.answer_count > 0

View file

@ -4,7 +4,8 @@
= user_screen_name report.user = user_screen_name report.user
reported a reported a
= report.type.sub('Reports::', '') = report.type.sub('Reports::', '')
= time_ago_in_words(report.created_at) %span{title: report.created_at, data: { toggle: :tooltip, placement: :bottom }}
= time_ago_in_words(report.created_at)
ago ago
.panel-body .panel-body
%p %p

View file

@ -11,7 +11,8 @@
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
= time_ago_in_words notification.target.created_at %span{title: notification.target.created_at, data: { toggle: :tooltip, placement: :bottom }}
= time_ago_in_words notification.target.created_at
ago ago
.notification--icon .notification--icon
%i.fa.fa-exclamation %i.fa.fa-exclamation
@ -23,7 +24,8 @@
= user_screen_name notification.target.source = user_screen_name notification.target.source
%p.notification--text %p.notification--text
followed you followed you
= time_ago_in_words notification.target.created_at %span{title: notification.target.created_at, data: { toggle: :tooltip, placement: :bottom }}
= time_ago_in_words notification.target.created_at
ago ago
.notification--icon .notification--icon
%i.fa.fa-users %i.fa.fa-users
@ -37,7 +39,8 @@
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
= time_ago_in_words notification.target.created_at %span{title: notification.target.created_at, data: { toggle: :tooltip, placement: :bottom }}
= time_ago_in_words notification.target.created_at
ago ago
.notification--icon .notification--icon
%i.fa.fa-smile-o %i.fa.fa-smile-o
@ -51,7 +54,8 @@
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
= time_ago_in_words notification.target.created_at %span{title: notification.target.created_at, data: { toggle: :tooltip, placement: :bottom }}
= time_ago_in_words notification.target.created_at
ago ago
.notification--icon .notification--icon
%i.fa.fa-comments %i.fa.fa-comments

View file

@ -10,7 +10,8 @@
%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
= time_ago_in_words(@question.created_at) %span{title: @question.created_at, data: { toggle: :tooltip, placement: :bottom }}
= time_ago_in_words(@question.created_at)
ago ago
%p.answerbox--question-text= @question.content %p.answerbox--question-text= @question.content

View file

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