2 <table class="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">
7 <%= image_tag "key/#{name}/#{entry['image']}" %>
9 <td class="mapkey-table-value">
10 <%= [*t("site.key.table.entry.#{entry['name']}")].to_sentence %>