Commit 9a13f1dc0ca16807d32ee941218edde7b0ca5ad2
1 parent
619178e3
Exists in
master
and in
28 other branches
Adding profile identifier information in comment group url
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
plugins/comment_group_macro/lib/comment_group_macro_plugin.rb
@@ -24,7 +24,7 @@ class CommentGroupMacroPlugin < Noosfero::Plugin | @@ -24,7 +24,7 @@ class CommentGroupMacroPlugin < Noosfero::Plugin | ||
24 | article = source | 24 | article = source |
25 | count = article.group_comments.without_spam.in_group(group_id).count | 25 | count = article.group_comments.without_spam.in_group(group_id).count |
26 | 26 | ||
27 | - 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 }} | 27 | + 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 }} |
28 | end | 28 | end |
29 | 29 | ||
30 | def macro_methods | 30 | def macro_methods |
plugins/comment_group_macro/views/_comment_group.rhtml
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | <div class="comment_group_<%= group_id %>" style="float: left"> | 2 | <div class="comment_group_<%= group_id %>" style="float: left"> |
3 | <div style="float: left"> | 3 | <div style="float: left"> |
4 | <%= link_to_remote(image_tag("/plugins/comment_group_macro/images/comments.gif"), | 4 | <%= link_to_remote(image_tag("/plugins/comment_group_macro/images/comments.gif"), |
5 | - :url => { :controller => 'comment_group_macro_plugin_profile', :action => 'view_comments', :group_id => group_id, :article_id => article_id}, | 5 | + :url => { :profile => profile_identifier, :controller => 'comment_group_macro_plugin_profile', :action => 'view_comments', :group_id => group_id, :article_id => article_id}, |
6 | :loaded => visual_effect(:highlight, "comments_list_group_#{group_id}"), | 6 | :loaded => visual_effect(:highlight, "comments_list_group_#{group_id}"), |
7 | :method => :post, | 7 | :method => :post, |
8 | :condition => "!groupVisible(#{group_id})", | 8 | :condition => "!groupVisible(#{group_id})", |