mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-21 19:57:48 +01:00
added tooltips to notification links
This commit is contained in:
parent
c3905791b6
commit
ae27f06df6
1 changed files with 3 additions and 3 deletions
|
@ -14,7 +14,7 @@
|
||||||
= user_screen_name notification.target.user
|
= user_screen_name notification.target.user
|
||||||
%p.notification--text
|
%p.notification--text
|
||||||
answered
|
answered
|
||||||
%a{href: show_user_answer_path(username: notification.target.user.screen_name, id: notification.target.id)}
|
%a{href: show_user_answer_path(username: notification.target.user.screen_name, id: notification.target.id), 'data-toggle' => 'tooltip', 'data-placement' => 'top', title: "#{notification.target.content[0..40]}..."}
|
||||||
your question
|
your question
|
||||||
= time_ago_in_words notification.target.created_at
|
= time_ago_in_words notification.target.created_at
|
||||||
ago
|
ago
|
||||||
|
@ -40,7 +40,7 @@
|
||||||
= user_screen_name notification.target.user
|
= user_screen_name notification.target.user
|
||||||
%p.notification--text
|
%p.notification--text
|
||||||
smiled at
|
smiled at
|
||||||
%a{href: show_user_answer_path(username: notification.target.user.screen_name, id: notification.target.answer.id)}
|
%a{href: show_user_answer_path(username: notification.target.user.screen_name, id: notification.target.answer.id), 'data-toggle' => 'tooltip', 'data-placement' => 'top', title: "#{notification.target.answer.content[0..40]}..."}
|
||||||
your answer
|
your answer
|
||||||
= time_ago_in_words notification.target.created_at
|
= time_ago_in_words notification.target.created_at
|
||||||
ago
|
ago
|
||||||
|
@ -54,7 +54,7 @@
|
||||||
= user_screen_name notification.target.user
|
= user_screen_name notification.target.user
|
||||||
%p.notification--text
|
%p.notification--text
|
||||||
commented on
|
commented on
|
||||||
%a{href: show_user_answer_path(username: notification.target.user.screen_name, id: notification.target.answer.id)}
|
%a{href: show_user_answer_path(username: notification.target.user.screen_name, id: notification.target.answer.id), 'data-toggle' => 'tooltip', 'data-placement' => 'top', title: "#{notification.target.answer.content[0..40]}..."}
|
||||||
your answer
|
your answer
|
||||||
= time_ago_in_words notification.target.created_at
|
= time_ago_in_words notification.target.created_at
|
||||||
ago
|
ago
|
||||||
|
|
Loading…
Reference in a new issue