2014-07-20 14:18:38 +02:00
|
|
|
%h2
|
|
|
|
%em.fa.fa-map-marker
|
2016-03-01 00:59:17 +01:00
|
|
|
= title t '.title'
|
|
|
|
- if params[:tag]
|
|
|
|
«
|
|
|
|
%em= params[:tag]
|
|
|
|
»
|
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
|
2016-04-17 14:07:39 +02:00
|
|
|
= Event.model_name.human
|
2016-05-23 01:51:45 +02:00
|
|
|
- markerColors = ['blue', 'red', 'darkred', 'orange', 'green', 'darkgreen',
|
|
|
|
'purple', 'darkpuple', 'cadetblue']
|
|
|
|
- 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-05-23 01:51:45 +02:00
|
|
|
.awesome-marker{ class: "awesome-marker-icon-#{markerColors[idx % markerColors.length]}" }
|
|
|
|
%i.icon-white.fa{ class: "fa-#{kind.icon}" }
|
2016-04-16 23:08:03 +02:00
|
|
|
= Kind.human_attribute_name("name_#{kind.name}")
|
2016-05-23 01:51:45 +02:00
|
|
|
- idx += 1
|