summaryrefslogtreecommitdiff
path: root/app/views/threadreplies/_reply.html.erb
blob: 88e4bfbf7dd9b2be9b5c5a16a9f07772179bb862 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<div class="item-group thread-reply with-avatar" id="reply-<%= reply.id %>">
  <div class="header">
    <%= link_to(reply.author.avatar(64), reply.author, title: reply.author.ign) %>
    <%= render partial: "users/username", locals: { user: reply.author } %>
    <%= link_to "#reply-#{reply.id}" do %>
      <%= ago reply.created_at %>
    <% end %>

    <%= link_to "edit", edit_forumthread_threadreply_path(reply.thread, reply), class: "editlink" if mod? || reply.author.is?(current_user) %>
    <div class="clear-right"></div>
  </div>
  <div class="items">
    <div class="item content">
      <%= render_md(reply.content).html_safe %>
    </div>
  </div>
</div>