ensl.org/app/views/comments/_comment.html.erb
Luke Barratt 12ed7c90ae Start to cleanup old assets
Added new ISO country code flag icons to asset pipeline
Lots and lots of new style changes
Began converting to JS to coffeescript
2014-04-09 00:28:53 +01:00

27 lines
991 B
Text

<div id="comment_<%= comment.id %>" class="comment">
<div class="comment-image">
<%= image_tag comment.user.profile.avatar.url, id: "user" %>
</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 'Q', "QuoteText('comments', #{comment.id}, '#{comment.user}')" %>
<% if comment.can_update? cuser %>
<%= link_to 'E', edit_comment_path(comment) %>
<% end %>
<% if comment.can_destroy? cuser %>
<%= link_to 'D', comment, :confirm => 'Are you sure?', :method => :delete %>
<% end %>
]
<% end %>
</div>
<%= comment.text_parsed.html_safe %>
<p class="comment-detail"><%= comment.created_at.strftime("%-d %B %Y, %H:%M") %></h2>
</div>
</div>