aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/comment/_single_comment.rhtml
blob: 2b762ef101bfa1d7d1cdbe997219767d4b98943e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<div class="comment_in_request" id="comment-<%=comment.id.to_s%>">
    <h2>
        <%# When not logged in, but mid-comment-leaving, there'll be no comment.user %>
        <%= comment.user ? user_or_you_capital_link(comment.user) : "You" %>
        left an annotation (<%= simple_date(comment.created_at || Time.now) %>)
    </h2>
    <div class="comment_in_request_text"> 
        <p><img class="comment_quote" src="/images/quote.png" alt=""><%= comment.get_body_for_html_display %></p>
    </div>
    <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>
</div>