2014-04-06 14:14:03 +00:00
|
|
|
<div id="comment_<%= comment.id %>" class="comment">
|
|
|
|
<div class="comment-image">
|
2014-04-15 09:59:52 +00:00
|
|
|
<%= image_tag comment.user.profile.avatar.url %>
|
2014-04-06 14:14:03 +00:00
|
|
|
</div>
|
|
|
|
<div class="comment-content">
|
|
|
|
<h1>
|
|
|
|
<%= flag(comment.user.country) if comment.user.country %>
|
|
|
|
<%= namelink(comment.user) %>
|
2014-04-08 23:28:46 +00:00
|
|
|
<% if comment.user.team %> | <%= namelink(comment.user.team) %><% end %>
|
2014-04-06 14:14:03 +00:00
|
|
|
</h1>
|
|
|
|
<div class="controls">
|
|
|
|
<% if cuser %>
|
2014-04-19 01:12:02 +00:00
|
|
|
<%= link_to_function icon('comment'), "QuoteText(#{comment.id}, 'comments')" %>
|
2014-04-06 14:14:03 +00:00
|
|
|
<% if comment.can_update? cuser %>
|
2014-04-19 01:12:02 +00:00
|
|
|
<%= link_to icon('pencil'), edit_comment_path(comment) %>
|
2014-04-06 14:14:03 +00:00
|
|
|
<% end %>
|
|
|
|
<% if comment.can_destroy? cuser %>
|
2014-04-19 01:12:02 +00:00
|
|
|
<%= link_to icon('times'), comment, :confirm => 'Are you sure?', :method => :delete %>
|
2014-04-06 14:14:03 +00:00
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2014-06-06 20:10:37 +00:00
|
|
|
<div class="comment-body">
|
|
|
|
<%= comment.text_parsed.html_safe %>
|
|
|
|
</div>
|
2014-04-06 14:14:03 +00:00
|
|
|
<p class="comment-detail"><%= comment.created_at.strftime("%-d %B %Y, %H:%M") %></h2>
|
|
|
|
</div>
|
|
|
|
</div>
|