Commit 30cfda7726b05bb9a04fb463e5fe0993b855226d
1 parent
fdaee4f4
Exists in
master
and in
28 other branches
removing old links for comment actions
Showing
1 changed file
with
0 additions
and
30 deletions
Show diff stats
app/views/comment/_comment.rhtml
| ... | ... | @@ -66,36 +66,6 @@ |
| 66 | 66 | }); |
| 67 | 67 | </script> |
| 68 | 68 | <% end %> |
| 69 | - <%= report_abuse(comment.author, :comment_link, comment) if comment.author %> | |
| 70 | - | |
| 71 | - <% if comment.spam? %> | |
| 72 | - | |
| 73 | - <%= 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') %> | |
| 74 | - <% else %> | |
| 75 | - <% if (logged_in? && (user == profile || user.has_permission?(:moderate_comments, profile))) %> | |
| 76 | - | |
| 77 | - <%= link_to_function(_('Mark as SPAM'), 'remove_comment(this, %s, %s); return false;' % [url_for(:profile => profile.identifier, :controller => 'comment', :action => :mark_as_spam, :id => comment.id).to_json, _('Are you sure you want to mark this comment as SPAM?').to_json], :class => 'comment-footer comment-footer-link comment-footer-hide') %> | |
| 78 | - <% end %> | |
| 79 | - <% end %> | |
| 80 | - | |
| 81 | - <% if comment.author && comment.author == user %> | |
| 82 | - | |
| 83 | - <%= expirable_comment_link comment, :edit, _('Edit'), url_for(:profile => profile.identifier, :controller => :comment, :action => :edit, :id => comment.id),:class => 'colorbox' %> | |
| 84 | - <% end %> | |
| 85 | - | |
| 86 | - <% if logged_in? && (user == profile || user == comment.author || user.has_permission?(:moderate_comments, profile)) %> | |
| 87 | - | |
| 88 | - <%= 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') %> | |
| 89 | - <% end %> | |
| 90 | - | |
| 91 | - <% unless comment.spam? %> | |
| 92 | - | |
| 93 | - <%= link_to_function _('Reply'), | |
| 94 | - "var f = add_comment_reply_form(this, %s); f.find('comment_title, textarea').val(''); return false" % comment.id, | |
| 95 | - :class => 'comment-footer comment-footer-link comment-footer-hide', | |
| 96 | - :id => 'comment-reply-to-' + comment.id.to_s | |
| 97 | - %> | |
| 98 | - <% end %> | |
| 99 | 69 | </div> |
| 100 | 70 | |
| 101 | 71 | <% end %> | ... | ... |