]> git.openstreetmap.org Git - rails.git/blob - app/views/site/key.html.erb
Merge remote-tracking branch 'openstreetmap/pull/1375'
[rails.git] / app / views / site / key.html.erb
1 <div id="mapkey">
2   <table class="mapkey-table">
3     <% YAML.load_file("#{Rails.root}/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">
7             <%= image_tag "key/#{name}/#{entry['image']}" %>
8           </td>
9           <td class="mapkey-table-value">
10             <%= [*t("site.key.table.entry.#{entry['name']}")].to_sentence %>
11           </td>
12         </tr>
13       <% end %>
14     <% end %>
15   </table>
16 </div>