2019-06-27 22:17:40 +02:00
|
|
|
= render '/regions/filter'
|
|
|
|
|
2020-02-04 17:56:45 +01:00
|
|
|
%ul.list.events#map
|
2019-06-16 17:08:56 +02:00
|
|
|
%li
|
|
|
|
= link_to maps_path format: :json do
|
|
|
|
.awesome-marker.awesome-marker-icon-blue
|
|
|
|
%i.icon-white.fa.fa-calendar
|
|
|
|
- if params[:future] == 'false'
|
|
|
|
= Event.model_name.human
|
|
|
|
- else
|
|
|
|
= t '.future'
|
2020-01-16 20:19:52 +01:00
|
|
|
|
2019-06-16 17:08:56 +02:00
|
|
|
- cs = %w[blue red darkred orange green darkgreen purple darkpuple cadetblue]
|
|
|
|
- idx = 1
|
|
|
|
- Kind.all.each do |kind|
|
|
|
|
%li
|
|
|
|
= link_to map_path kind.name, format: :json do
|
|
|
|
.awesome-marker{ class: "awesome-marker-icon-#{cs[idx % cs.length]}" }
|
|
|
|
%i.icon-white.fa{ class: "fa-#{kind.icon}" }
|
|
|
|
= Kind.human_attribute_name "name_#{kind.name}"
|
|
|
|
- idx += 1
|