]> git.openstreetmap.org Git - rails.git/blob - app/views/site/key.html.erb
Masked off reporting as unused various keys
[rails.git] / app / views / site / key.html.erb
1 <div id="mapkey">
2   <table class="table table-sm table-borderless mb-0 align-middle">
3     <% @key.each do |layer_name, layer_data| %>
4       <% layer_data.each do |entry| %>
5         <%= tag.tr :class => "mapkey-table-entry", :data => { :layer => layer_name, :zoom_min => entry["min_zoom"], :zoom_max => entry["max_zoom"] } do %>
6           <td>
7             <% if entry["image"] %>
8               <%= image_tag "key/#{layer_name}/#{entry['image']}", :class => "d-block mx-auto" %>
9             <% else %>
10               <%= key_svg_tag :class => "d-block mx-auto", **entry %>
11             <% end %>
12           </td>
13           <td>
14             <%= entry["name"].map { |feature_name| t ".table.entry.#{feature_name}" }.join(" ยท ") %>
15           </td>
16         <% end %>
17       <% end %>
18     <% end %>
19   </table>
20 </div>