A calendar management project, for events and activities related to communities fighting for freedoms.
This can be related to software, art, data, hardware, content, commons, internet.
https://www.agendadulibre.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

30 lines
1.0 KiB

%li{ class: ('selected' if params[:region] == filter_region.id.to_s) }
- if filter_region.url.present?
= link_to filter_region.url do
- if filter_region.code.present?
= flag_icon filter_region.flag
= t filter_region.code, scope: :countries, default: filter_region.name
%small
%em.fa.fa-external-link-alt
- else
= link_to region: params[:region] == filter_region.id.to_s ? '' : filter_region do
- if filter_region.code.present?
= flag_icon filter_region.flag
= t filter_region.code, scope: :countries, default: filter_region.name
- else
%em.fa.fa-shield-alt
= t filter_region.name, scope: :countries, default: filter_region.name
- if params[:region] == filter_region.id.to_s
%em.fa.fa-times
- elsif filter_region.region.nil? && filter_region.regions.present?
%small
%em.fa.fa-chevron-down
- if filter_region.region.nil? # Quick optimisation
%ul
= render partial: '/regions/filter_region',
collection: filter_region.regions