added tooltips to notification links

This commit is contained in:
pixeldesu 2014-12-16 16:54:33 +01:00
parent c3905791b6
commit ae27f06df6
1 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@
= user_screen_name notification.target.user
%p.notification--text
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
= time_ago_in_words notification.target.created_at
ago
@ -40,7 +40,7 @@
= user_screen_name notification.target.user
%p.notification--text
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
= time_ago_in_words notification.target.created_at
ago
@ -54,7 +54,7 @@
= user_screen_name notification.target.user
%p.notification--text
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
= time_ago_in_words notification.target.created_at
ago