Map legend markers now have the proper color
This commit is contained in:
parent
7f3ca0e920
commit
1d5eac21f2
|
@ -23,6 +23,10 @@
|
|||
// Left align the map controls place in the top right corner
|
||||
form.leaflet-control-layers-list label
|
||||
text-align: left
|
||||
.awesome-marker
|
||||
height: auto
|
||||
display: inline-block
|
||||
position: relative
|
||||
|
||||
html.iframe #map
|
||||
width: 100%
|
||||
|
|
|
@ -6,13 +6,19 @@
|
|||
%em= params[:tag]
|
||||
»
|
||||
|
||||
%ul#map.list
|
||||
%ul.list#map
|
||||
%li
|
||||
= link_to maps_path format: :json do
|
||||
%em.fa.fa-calendar
|
||||
.awesome-marker.awesome-marker-icon-blue
|
||||
%i.icon-white.fa.fa-calendar
|
||||
= Event.model_name.human
|
||||
- markerColors = ['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
|
||||
%em.fa{ class: "fa-#{kind.icon}" }
|
||||
.awesome-marker{ class: "awesome-marker-icon-#{markerColors[idx % markerColors.length]}" }
|
||||
%i.icon-white.fa{ class: "fa-#{kind.icon}" }
|
||||
= Kind.human_attribute_name("name_#{kind.name}")
|
||||
- idx += 1
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
@ -0,0 +1,21 @@
|
|||
(function() {
|
||||
$(document).ready(function() {
|
||||
return tinyMCE.init({
|
||||
schema: 'html5',
|
||||
menubar: false,
|
||||
language: 'fr_FR',
|
||||
selector: 'textarea.description',
|
||||
content_css: '/assets/application-c34c3ba2010790dceea8b71dba0bf37f4895c79e2154218b2d7759d721fa1e59.css',
|
||||
entity_encoding: 'raw',
|
||||
add_unload_trigger: true,
|
||||
browser_spellcheck: true,
|
||||
toolbar: [' bold italic strikethrough | bullist numlist outdent indent | alignleft aligncenter alignright alignjustify | link image media insertdatetime charmap table | undo redo | searchreplace | code visualblocks preview fullscreen'],
|
||||
plugins: 'lists, advlist, autolink, link, image, charmap, paste, print, preview, table, fullscreen, searchreplace, media, insertdatetime, visualblocks, visualchars, wordcount, contextmenu, code'
|
||||
});
|
||||
});
|
||||
|
||||
$(document).on('page:receive', function() {
|
||||
return tinymce.remove();
|
||||
});
|
||||
|
||||
}).call(this);
|
Binary file not shown.
Loading…
Reference in New Issue