ordered searching to match SQL clauses, moved role&badge filtering to User.search

This commit is contained in:
MrYummy
2017-06-02 19:14:28 +02:00
parent 0d5d69ac6e
commit 887263d28e
5 changed files with 56 additions and 91 deletions

View File

@@ -1,11 +1,7 @@
<%= 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 %>
<% if params[:reverse] %>
<%= link_to "Reverse Replies", @thread, class: "btn right blue" %>
<% else %>
<%= link_to "Reverse Replies", forumthread_path(@thread, reverse: true), class: "btn right blue" %>
<% end %>
<%= 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">