blob: d4282ced8fe9f3b42e3eb755b30308cfcff97324 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
<div class="comment_in_request" id="comment-<%=comment.id.to_s%>">
<% if comment.user && comment.user.profile_photo %>
<div class="user_photo_on_comment">
<img src="<%= get_profile_photo_url(:url_name => comment.user.url_name) %>" alt="">
</div>
<% end %>
<h2>
<%# When not logged in, but mid-comment-leaving, there'll be no comment.user %>
<%= comment.user ? user_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>
|