Adds comments filter for debates and proposals

This commit is contained in:
Alberto Garcia Cabeza
2015-10-28 11:30:11 +01:00
committed by kikito
parent f917c21c2a
commit 82eb0bd902
3 changed files with 54 additions and 0 deletions

View File

@@ -7,6 +7,23 @@
<span class="js-comments-count">(<%= @debate.comments_count %>)</span>
</h2>
<!-- Filter for comments -->
<div class="filter-comments small-12 medium-8">
<form>
<div class="small-12 medium-8 left">
<label for="order-selector-participation"><%= t("debates.index.select_order") %></label>
</div>
<div class="small-12 medium-4 left">
<select class="js-location-changer js-order-selector select-order" data-order="<%= @current_order %>" name="order-selector" id="order-selector-participation">
<option>Más votados</option>
<option>Más nuevos</option>
<option>Aleatorios</option>
</select>
</div>
</form>
</div>
<!-- /. Filter for comments -->
<% if user_signed_in? %>
<%= render 'comments/form', {commentable: @debate, parent_id: nil, toggeable: false} %>
<% else %>