diff options
author | tony <tony> | 2009-03-07 10:15:03 +0000 |
---|---|---|
committer | tony <tony> | 2009-03-07 10:15:03 +0000 |
commit | 643521c34112bf875f811b1ed1de40c6b136d09c (patch) | |
tree | 61332a239480248d6b387ca74722f338ab32fecd | |
parent | d9f57a92c8789db41d77715f9bf74d6a2fac5131 (diff) |
Conditional link to admin page for comment
-rw-r--r-- | app/views/comment/_single_comment.rhtml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/comment/_single_comment.rhtml b/app/views/comment/_single_comment.rhtml index 8ff8bf254..003f60360 100644 --- a/app/views/comment/_single_comment.rhtml +++ b/app/views/comment/_single_comment.rhtml @@ -9,6 +9,9 @@ <p class="event_actions"> <% if !comment.id.nil? %> <%= link_to "Link to this", comment_url(comment) %> + <% if !@user.nil? && @user.admin_page_links? %> + | <%= link_to "Admin", admin_url("request/edit_comment/" + comment.id.to_s) %> + <% end %> <!-- | <%= link_to "Report abuse", comment_url(comment) %> --> <% end %> </p> |