Skip to content

Commit

Permalink
Another sorting option
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Sep 12, 2023
1 parent d5e4eff commit eaf0355
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/views/projects/review.html.erb
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@

<div class="container-md">


<ul class="nav nav-tabs my-3">
<li class="nav-item">
<h2>Projects to review</h2>
<h2>
Projects to review
<span class="badge bg-light text-muted"><%= @pagy.count %></span>
</h2>
</li>
<li class="nav-item ms-auto">
<div class="dropdown">
Expand All @@ -16,6 +17,7 @@
<li><a class="dropdown-item <%= 'active' if params[:sort] == 'vote_count' && params[:order] == 'asc' %>" href="<%= url_for(sort: 'vote_count', order: 'asc') %>">Least votes</a></li>
<li><a class="dropdown-item <%= 'active' if params[:sort] == 'vote_score' %>" href="<%= url_for(sort: 'vote_score', order: 'desc') %>">Vote score</a></li>
<li><a class="dropdown-item <%= 'active' if params[:sort] == 'score' %>" href="<%= url_for(sort: 'score', order: 'desc') %>">Ranking</a></li>
<li><a class="dropdown-item <%= 'active' if params[:sort] == 'last_synced_at' %>" href="<%= url_for(sort: 'last_synced_at', order: 'desc') %>">Recently synced</a></li>
</ul>
</div>
</li>
Expand Down

0 comments on commit eaf0355

Please sign in to comment.