mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-21 22:07:48 +01:00
tooltips for comment timestamps [ci skip]
This commit is contained in:
parent
bbb3b806a5
commit
6b08e6fed5
2 changed files with 4 additions and 2 deletions
|
@ -10,7 +10,8 @@
|
|||
.media-body.comments--body
|
||||
%h6.media-heading.answerbox--question-user
|
||||
= user_screen_name comment.user
|
||||
%span.text-muted= "#{time_ago_in_words(comment.created_at)} ago"
|
||||
%span.text-muted{title: comment.created_at, data: { toggle: :tooltip, placement: :right }}
|
||||
= "#{time_ago_in_words(comment.created_at)} ago"
|
||||
- if comment.user == current_user
|
||||
.pull-right
|
||||
.btn-group
|
||||
|
|
|
@ -11,7 +11,8 @@
|
|||
.media-body.comments--body
|
||||
%h6.media-heading.answerbox--question-user
|
||||
= user_screen_name comment.user
|
||||
%span.text-muted= "#{time_ago_in_words(comment.created_at)} ago"
|
||||
%span.text-muted{title: comment.created_at, data: { toggle: :tooltip, placement: :right }}
|
||||
= "#{time_ago_in_words(comment.created_at)} ago"
|
||||
.pull-right
|
||||
%span.hidden-xs.text-muted
|
||||
- unless user_signed_in?
|
||||
|
|
Loading…
Reference in a new issue