From ae27f06df6519b89c8be2b89808a94127191c8dd Mon Sep 17 00:00:00 2001 From: pixeldesu Date: Tue, 16 Dec 2014 16:54:33 +0100 Subject: [PATCH] added tooltips to notification links --- app/views/notifications/index.html.haml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/notifications/index.html.haml b/app/views/notifications/index.html.haml index b3ff31a4..50c8d440 100644 --- a/app/views/notifications/index.html.haml +++ b/app/views/notifications/index.html.haml @@ -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