From 663d9abc5f2ac8cba9454a082919ac5f86be5614 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Sat, 15 Mar 2014 12:03:04 -0300 Subject: [PATCH] vote_plugin: display login popup when click on like/dislike --- plugins/vote/views/vote/_vote.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/vote/views/vote/_vote.html.erb b/plugins/vote/views/vote/_vote.html.erb index 57fce2d..9d6019e 100644 --- a/plugins/vote/views/vote/_vote.html.erb +++ b/plugins/vote/views/vote/_vote.html.erb @@ -5,7 +5,7 @@ reload_url = url_for(:controller => 'vote_plugin_profile', :profile => profile.i class="vote-action action <%= action %>-action"> - <%= link_to_remote content_tag(:span, count, :class=>'like-action-counter') + content_tag(:span, '', :class=>"action-icon #{action}"), :url => url, :html => {:class => "#{active ? 'like-action-active':''} #{user ? '':'disabled'}"} %> + <%= link_to content_tag(:span, count, :class=>'like-action-counter') + content_tag(:span, '', :class=>"action-icon #{action}"), url, :class => "#{active ? 'like-action-active':''} require-login-popup" %> <% if !voters.blank? %> -- libgit2 0.21.2