2014-07-20 14:18:38 +02:00
|
|
|
%h2
|
2017-05-20 17:23:57 +02:00
|
|
|
%em.fa.fa-map
|
2016-03-01 00:59:17 +01:00
|
|
|
= title t '.title'
|
2014-04-28 00:33:21 +02:00
|
|
|
|
2016-05-23 01:51:45 +02:00
|
|
|
%ul.list#map
|
2016-04-16 23:08:03 +02:00
|
|
|
%li
|
|
|
|
= link_to maps_path format: :json do
|
2016-05-23 01:51:45 +02:00
|
|
|
.awesome-marker.awesome-marker-icon-blue
|
|
|
|
%i.icon-white.fa.fa-calendar
|
2019-04-25 19:39:20 +02:00
|
|
|
- if params[:future] == 'false'
|
|
|
|
= Event.model_name.human
|
|
|
|
- else
|
|
|
|
= t '.future'
|
2019-04-19 14:45:47 +02:00
|
|
|
- cs = %w[blue red darkred orange green darkgreen purple darkpuple cadetblue]
|
2016-05-23 01:51:45 +02:00
|
|
|
- idx = 1
|
2016-04-16 23:08:03 +02:00
|
|
|
- Kind.all.each do |kind|
|
|
|
|
%li
|
|
|
|
= link_to map_path kind.name, format: :json do
|
2016-10-18 15:37:03 +02:00
|
|
|
.awesome-marker{ class: "awesome-marker-icon-#{cs[idx % cs.length]}" }
|
2016-05-23 01:51:45 +02:00
|
|
|
%i.icon-white.fa{ class: "fa-#{kind.icon}" }
|
2019-04-20 15:16:21 +02:00
|
|
|
= Kind.human_attribute_name "name_#{kind.name}"
|
2016-05-23 01:51:45 +02:00
|
|
|
- idx += 1
|