This commit is contained in:
nilsding 2014-12-27 01:55:09 +01:00
parent a37cd95f46
commit 64d50ad9b4
2 changed files with 4 additions and 4 deletions

View File

@ -1 +1 @@
($ '[data-toggle="tooltip"]').tooltip(placement: 'top') ($ document).ready -> ($ '[data-toggle="tooltip"]').tooltip()

View File

@ -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), 'data-toggle' => 'tooltip', 'data-placement' => 'top', title: "#{notification.target.content[0..40]}..."} %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 = 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), 'data-toggle' => 'tooltip', 'data-placement' => 'top', title: "#{notification.target.answer.content[0..40]}..."} %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 = 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), 'data-toggle' => 'tooltip', 'data-placement' => 'top', title: "#{notification.target.answer.content[0..40]}..."} %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 = time_ago_in_words notification.target.created_at
ago ago