From 7b5b9d77bc392d642c1647c91139e9f72e1c3be1 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Sat, 8 Oct 2016 20:42:51 +0300 Subject: [PATCH] Fix filtering events by track id --- app/views/management/events/index.html.slim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/management/events/index.html.slim b/app/views/management/events/index.html.slim index 5b9e48f..207dad3 100644 --- a/app/views/management/events/index.html.slim +++ b/app/views/management/events/index.html.slim @@ -37,12 +37,12 @@ = Event.human_attribute_name(:track) .panel-body ul.nav.nav-pills.nav-stacked - = content_tag :li, role: "presentation", class: @filters[:track].blank? ? 'active' : nil - = link_to management_conference_events_path(current_conference, filters: @filters.except(:track)) + = content_tag :li, role: "presentation", class: @filters[:track_id].blank? ? 'active' : nil + = link_to management_conference_events_path(current_conference, filters: @filters.except(:track_id)) = t '.all' - current_conference.tracks.each do |track| - = content_tag :li, role: "presentation", class: @filters[:track] == track.id.to_s ? 'active' : nil - = link_to management_conference_events_path(current_conference, filters: @filters.merge({track: track.id})) + = content_tag :li, role: "presentation", class: @filters[:track_id] == track.id.to_s ? 'active' : nil + = link_to management_conference_events_path(current_conference, filters: @filters.merge({track_id: track.id})) = track.name .panel.panel-default .panel-heading