<% title @thread.title %> <%= link_to @thread.forum.group, forumgroup_path(@thread.forum.group) %> → <%= link_to @thread.forum, @thread.forum %> → <%= link_to @thread %>

<%= truncate(@thread.title, length: 60, omission: " …") %>

<%= link_to(@thread.author.avatar(64), @thread.author, title: @thread.author.ign) %> <%= render partial: "users/username", locals: { user: @thread.author } %> <%= link_to p do %><% end %> <%= link_to "edit", edit_forumthread_path( @thread), class: "editlink" if (@thread.author.is?(current_user) || mod?) %>
<% if @thread.edited? %>
Last edited by <%= link_to @thread.editor.name, @thread.editor %>.
<% end %>
<%= render_md(@thread.content).html_safe %>

<%= "#{pluralize(@thread.replies.length, 'reply')}." %>

<% @thread.replies.each do |reply| %> <%= render partial: "threadreplies/reply", locals: {reply: reply} %> <% end %> <% if @thread.can_write?(current_user) %> <%= render partial: "threadreplies/new", locals: {reply: Threadreply.new(forumthread: @thread)} %> <% else %> You cannot reply here. <% end %>