Fix filtering events by track id

This commit is contained in:
Petko Bordjukov 2016-10-08 20:42:51 +03:00
parent 911e7c19ee
commit 7b5b9d77bc
1 changed files with 4 additions and 4 deletions

View File

@ -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