ensl.org/app/views/comments/_comment.html.erb

28 lines
1,019 B
Text
Raw Permalink Normal View History

2014-04-06 14:14:03 +00:00
<div id="comment_<%= comment.id %>" class="comment">
<div class="comment-image">
<%= 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) %>
<% if comment.user.team %> | <%= namelink(comment.user.team) %><% end %>
2014-04-06 14:14:03 +00:00
</h1>
<div class="controls">
<% if cuser %>
<%= link_to_function icon('comment'), "QuoteText(#{comment.id}, 'comments')" %>
2014-04-06 14:14:03 +00:00
<% if comment.can_update? cuser %>
<%= link_to icon('pencil'), edit_comment_path(comment) %>
2014-04-06 14:14:03 +00:00
<% end %>
<% if comment.can_destroy? cuser %>
<%= 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>