diff options
Diffstat (limited to 'app/views/forumthreads/show.html.erb')
-rw-r--r-- | app/views/forumthreads/show.html.erb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/app/views/forumthreads/show.html.erb b/app/views/forumthreads/show.html.erb index 876d55d..b29d29e 100644 --- a/app/views/forumthreads/show.html.erb +++ b/app/views/forumthreads/show.html.erb @@ -1,6 +1,8 @@ <%= link_to @thread.forum.group, forumgroup_path(@thread.forum.group) %> → <%= link_to @thread.forum, @thread.forum %> → <%=truncate(@thread.title, length: 60, omission: " …") %> -<h1><%= render partial: "labels/label", locals: {label: @thread.label} %><%= title @thread.title %></h1> - +<h1> + <%= render partial: "labels/label", locals: {label: @thread.label} %><%= title @thread.title %> + <%= link_to "Reverse Replies", forumthread_path(@thread, reverse: params[:reverse] != "true"), class: "btn right blue" %> +</h1> <div class="item-group thread with-avatar" id="thread-<%= @thread.id %>"> <div class="header"> <%= link_to(@thread.author.avatar(64), @thread.author, title: @thread.author.ign) %> @@ -44,4 +46,4 @@ <% else %> <p>Please <%= link_to "Log in", login_path(return_path: request.env['PATH_INFO']), action: "new" %> to post a reply.</p> <% end %> -</div>
\ No newline at end of file +</div> |