mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-11-15 09:21:25 +00:00
27 lines
1,019 B
Text
27 lines
1,019 B
Text
<div id="comment_<%= comment.id %>" class="comment">
|
|
<div class="comment-image">
|
|
<%= image_tag comment.user.profile.avatar.url %>
|
|
</div>
|
|
<div class="comment-content">
|
|
<h1>
|
|
<%= flag(comment.user.country) if comment.user.country %>
|
|
<%= namelink(comment.user) %>
|
|
<% if comment.user.team %> | <%= namelink(comment.user.team) %><% end %>
|
|
</h1>
|
|
<div class="controls">
|
|
<% if cuser %>
|
|
<%= link_to_function icon('comment'), "QuoteText(#{comment.id}, 'comments')" %>
|
|
<% if comment.can_update? cuser %>
|
|
<%= link_to icon('pencil'), edit_comment_path(comment) %>
|
|
<% end %>
|
|
<% if comment.can_destroy? cuser %>
|
|
<%= link_to icon('times'), comment, :confirm => 'Are you sure?', :method => :delete %>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|
|
<div class="comment-body">
|
|
<%= comment.text_parsed.html_safe %>
|
|
</div>
|
|
<p class="comment-detail"><%= comment.created_at.strftime("%-d %B %Y, %H:%M") %></h2>
|
|
</div>
|
|
</div>
|