]> git.openstreetmap.org Git - rails.git/blob - app/views/site/key.html.erb
Merge remote-tracking branch 'upstream/pull/2431'
[rails.git] / app / views / site / key.html.erb
1 <div id="mapkey">
2   <table class="table table-sm table-borderless mapkey-table">
3     <% YAML.load_file(Rails.root.join("config/key.yml")).each do |name,data| %>
4       <% data.each do |entry| %>
5         <tr class="mapkey-table-entry" data-layer="<%= name %>" data-zoom-min="<%= entry["min_zoom"] %>" data-zoom-max="<%= entry["max_zoom"] %>">
6           <td class="mapkey-table-key align-middle">
7             <%= image_tag "key/#{name}/#{entry['image']}" %>
8           </td>
9           <td class="mapkey-table-value">
10             <%= [*t(".table.entry.#{entry['name']}")].to_sentence %>
11           </td>
12         </tr>
13       <% end %>
14     <% end %>
15   </table>
16 </div>