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