From 8dc1b70621a733a1cb783c5f2fa2988cd74caf13 Mon Sep 17 00:00:00 2001 From: Andrej Kacian Date: Mon, 15 Aug 2011 00:54:27 +0200 Subject: [PATCH] Use tipsy for post scope tooltip --- app/views/shared/_stream_element.html.haml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/views/shared/_stream_element.html.haml b/app/views/shared/_stream_element.html.haml index 2fd74b23c..3c55eb299 100644 --- a/app/views/shared/_stream_element.html.haml +++ b/app/views/shared/_stream_element.html.haml @@ -2,6 +2,11 @@ -# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. +:javascript + $(function() { + $("span.post_scope").tipsy({trigger: 'hover', gravity: 'n'}); + }); + .stream_element{:id => post.guid} - if user_signed_in? - if post.author.owner_id == current_user.id