Region filter links do not repeat start_date
This commit is contained in:
parent
dfef78fca0
commit
a0c4ecce11
@ -7,8 +7,7 @@
|
|||||||
%small
|
%small
|
||||||
%em.fa.fa-external-link-alt
|
%em.fa.fa-external-link-alt
|
||||||
- else
|
- else
|
||||||
= link_to start_date: params[:start_date], year: params[:year],
|
= link_to region: params[:region] == filter_region.id.to_s ? '' : filter_region do
|
||||||
region: params[:region] == filter_region.id.to_s ? '' : filter_region do
|
|
||||||
- if filter_region.code.present?
|
- if filter_region.code.present?
|
||||||
= flag_icon filter_region.code.downcase
|
= flag_icon filter_region.code.downcase
|
||||||
= t filter_region.code, scope: :countries, default: filter_region.name
|
= t filter_region.code, scope: :countries, default: filter_region.name
|
||||||
|
Loading…
Reference in New Issue
Block a user