Commit b725adeedc3aefcd0f496a0dd81c49e50a264434

Authored by Leandro Nunes dos Santos
1 parent 59c7467a

adding profile information in url's

Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
app/views/comment/_comment.rhtml
@@ -55,7 +55,7 @@ @@ -55,7 +55,7 @@
55 55
56 <% if comment.spam? %> 56 <% if comment.spam? %>
57 &nbsp; 57 &nbsp;
58 - <%= link_to_function(_('Mark as NOT SPAM'), 'remove_comment(this, %s); return false;' % url_for(:mark_comment_as_ham => comment.id).to_json, :class => 'comment-footer comment-footer-link comment-footer-hide') %> 58 + <%= link_to_function(_('Mark as NOT SPAM'), 'remove_comment(this, %s); return false;' % url_for(:profile => profile.identifier, :mark_comment_as_ham => comment.id).to_json, :class => 'comment-footer comment-footer-link comment-footer-hide') %>
59 <% else %> 59 <% else %>
60 <% if (logged_in? && (user == profile || user.has_permission?(:moderate_comments, profile))) %> 60 <% if (logged_in? && (user == profile || user.has_permission?(:moderate_comments, profile))) %>
61 &nbsp; 61 &nbsp;
@@ -65,12 +65,12 @@ @@ -65,12 +65,12 @@
65 65
66 <% if comment.author && comment.author == user %> 66 <% if comment.author && comment.author == user %>
67 &nbsp; 67 &nbsp;
68 - <%= expirable_comment_link comment, :edit, _('Edit'), url_for(:controller => :comment, :action => :edit, :id => comment.id),:class => 'colorbox' %> 68 + <%= expirable_comment_link comment, :edit, _('Edit'), url_for(:profile => profile.identifier, :controller => :comment, :action => :edit, :id => comment.id),:class => 'colorbox' %>
69 <% end %> 69 <% end %>
70 70
71 <% if logged_in? && (user == profile || user == comment.author || user.has_permission?(:moderate_comments, profile)) %> 71 <% if logged_in? && (user == profile || user == comment.author || user.has_permission?(:moderate_comments, profile)) %>
72 &nbsp; 72 &nbsp;
73 - <%= link_to_function(_('Remove'), 'remove_comment(this, %s, %s); return false ;' % [url_for(:controller => 'comment', :action => :destroy, :id => comment.id).to_json, _('Are you sure you want to remove this comment and all its replies?').to_json], :class => 'comment-footer comment-footer-link comment-footer-hide remove-children') %> 73 + <%= link_to_function(_('Remove'), 'remove_comment(this, %s, %s); return false ;' % [url_for(:profile => profile.identifier, :controller => 'comment', :action => :destroy, :id => comment.id).to_json, _('Are you sure you want to remove this comment and all its replies?').to_json], :class => 'comment-footer comment-footer-link comment-footer-hide remove-children') %>
74 <% end %> 74 <% end %>
75 75
76 <% unless comment.spam? %> 76 <% unless comment.spam? %>