ParticipioLabs / dreams

A platform for planning and crowdfunding co-created events.
MIT License
5 stars 5 forks source link

Re-enable sort by controversy #66

Closed aerugo closed 5 years ago

aerugo commented 5 years ago

Sorting by toggled flags in app/views/camps/_list.html.erb was breaking the filtering function. It should be fixed and added again. Code that was removed:

<table id='table-view' style='display: none'>
    <tr>
        <th>Dream name</th>
        <th>Monster actions</th>
        <th>Approvers</th>
    </tr>
    <% @camps.count_all_flags.each do |camp_id, flag_sum| %>
        <% @the_camp = @camps.find(camp_id) %>
        <tr>
            <%= render :partial => 'camps/camp_row', locals: { camp: @the_camp, flag_sum: flag_sum } %>
        </tr>
    <% end %>
</table>