<% if @comment.unreviewed? %>
  <% if @owner && @comment.ultimate_parent.is_a?(Work) %>
    <p>Comments on this work are moderated and will not appear until you approve them.</p>
  <% elsif @comment.ultimate_parent.is_a?(AdminPost) %>
    <p>Comments on this news post are moderated and will not appear until approved.</p>
  <% else %>
    <p>Comments on this work are moderated and will not appear until approved by the work creator.</p>
  <% end %>
<% end %>

<% if @comment.unreviewed? && @owner %>
  <%= style_link("Review comments on <i>"  + @comment.ultimate_parent.commentable_name + "</i>", 
    polymorphic_url([:unreviewed, @comment.ultimate_parent, :comments])) %>
    <br />
<% end %>

<% unless (@comment.unreviewed? || @noreply) %>
  <%= style_link("Reply to this comment", 
    comment_url(@comment, :add_comment_reply_id => @comment.id, :only_path => false)) %>
  <br />
<% end %>

<%= style_link("Go to the thread starting from this comment", 
  comment_url(@comment, :only_path => false)) %>
<br />

<% unless @comment.id == @comment.thread %>
  <%= style_link("Go to the thread to which this comment belongs", 
    comment_url(:id => @comment.thread, :only_path => false)) %>
  <br />
<% end %>

<% if @comment.parent.kind_of?(Chapter) && @comment.ultimate_parent.chaptered? %>
  <%= style_link("Read all comments on Chapter #{@comment.parent.position} of <i>#{@comment.ultimate_parent.commentable_name}</i>",
        work_chapter_url(@comment.parent.work, @comment.parent, show_comments: true, anchor: :comments)) %>
  <br />
<% else %>
  <%= style_link("Read all comments on <i>#{@comment.ultimate_parent.commentable_name}</i>",
        polymorphic_url(@comment.ultimate_parent, view_full_work: true, show_comments: true, anchor: :comments)) %>
<% end %>
