2 <table class="table table-sm table-borderless mapkey-table mb-0">
3 <% YAML.load_file(Rails.root.join("config/key.yml")).each do |name,data| %>
4 <% data.each do |entry| %>
5 <%= tag.tr :class => "mapkey-table-entry", :data => { :layer => name, :zoom_min => entry["min_zoom"], :zoom_max => entry["max_zoom"] } do %>
6 <td class="mapkey-table-key align-middle">
7 <% if entry["width"] && entry["height"] && entry["fill"] %>
8 <%= image_tag "data:image/svg+xml,#{u("<svg xmlns='http://www.w3.org/2000/svg' width='#{entry['width']}' height='#{entry['height']}'><rect width='100%' height='100%' fill='#{entry['fill']}' /></svg>")}" %>
10 <%= image_tag "key/#{name}/#{entry['image']}" %>
13 <td class="mapkey-table-value">
14 <%= Array(t(".table.entry.#{entry['name']}")).to_sentence %>