Refactors design of comments order selector into a partial with i18n

This commit is contained in:
kikito
2015-10-28 15:48:48 +01:00
parent 82eb0bd902
commit e4bfc72649
9 changed files with 56 additions and 36 deletions

View File

@@ -8,22 +8,7 @@
<span class="js-comments-count">(<%= @proposal.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 -->
<%= render 'shared/wide_order_selector', i18n_namespace: "comments" %>
<% if user_signed_in? %>
<%= render 'comments/form', {commentable: @proposal, parent_id: nil, toggeable: false} %>
@@ -44,4 +29,4 @@
</div>
</div>
</section>
<% end %>
<% end %>