From 9a13f1dc0ca16807d32ee941218edde7b0ca5ad2 Mon Sep 17 00:00:00 2001 From: Leandro Nunes dos Santos Date: Wed, 6 Mar 2013 11:44:07 -0300 Subject: [PATCH] Adding profile identifier information in comment group url --- plugins/comment_group_macro/lib/comment_group_macro_plugin.rb | 2 +- plugins/comment_group_macro/views/_comment_group.rhtml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/comment_group_macro/lib/comment_group_macro_plugin.rb b/plugins/comment_group_macro/lib/comment_group_macro_plugin.rb index d14740b..4f9132c 100644 --- a/plugins/comment_group_macro/lib/comment_group_macro_plugin.rb +++ b/plugins/comment_group_macro/lib/comment_group_macro_plugin.rb @@ -24,7 +24,7 @@ class CommentGroupMacroPlugin < Noosfero::Plugin article = source count = article.group_comments.without_spam.in_group(group_id).count - lambda {render :partial => 'plugins/comment_group_macro/views/comment_group.rhtml', :locals => {:group_id => group_id, :article_id => article.id, :inner_html => inner_html, :count => count }} + lambda {render :partial => 'plugins/comment_group_macro/views/comment_group.rhtml', :locals => {:group_id => group_id, :article_id => article.id, :inner_html => inner_html, :count => count, :profile_identifier => artile.profile }} end def macro_methods diff --git a/plugins/comment_group_macro/views/_comment_group.rhtml b/plugins/comment_group_macro/views/_comment_group.rhtml index 4978899..490aba8 100644 --- a/plugins/comment_group_macro/views/_comment_group.rhtml +++ b/plugins/comment_group_macro/views/_comment_group.rhtml @@ -2,7 +2,7 @@
<%= link_to_remote(image_tag("/plugins/comment_group_macro/images/comments.gif"), - :url => { :controller => 'comment_group_macro_plugin_profile', :action => 'view_comments', :group_id => group_id, :article_id => article_id}, + :url => { :profile => profile_identifier, :controller => 'comment_group_macro_plugin_profile', :action => 'view_comments', :group_id => group_id, :article_id => article_id}, :loaded => visual_effect(:highlight, "comments_list_group_#{group_id}"), :method => :post, :condition => "!groupVisible(#{group_id})", -- libgit2 0.21.2