agenda-libre-ruby/app/views/maps/_events.html.haml

22 lines
674 B
Plaintext
Raw Normal View History

= render '/regions/filter'
%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