]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/key.html.erb
More improvements to locale selection for the data browser
[rails.git] / app / views / site / key.html.erb
index 91dfd125023d1fdc61395efc2c0707b9d17f6af6..e43d2c29a3da5aa2d25d4fc007fbc51b46a6b22d 100644 (file)
@@ -1,9 +1,9 @@
 <div id="mapkey">
 <div id="mapkey">
-  <table class="mapkey-table">
-    <% YAML.load_file(Rails.root.join("config", "key.yml")).each do |name,data| %>
+  <table class="table table-sm table-borderless mapkey-table">
+    <% YAML.load_file(Rails.root.join("config/key.yml")).each do |name,data| %>
       <% data.each do |entry| %>
       <% data.each do |entry| %>
-        <tr class="mapkey-table-entry" data-layer="<%= name %>" data-zoom-min="<%= entry['min_zoom'] %>" data-zoom-max="<%= entry['max_zoom'] %>">
-          <td class="mapkey-table-key">
+        <tr class="mapkey-table-entry" data-layer="<%= name %>" data-zoom-min="<%= entry["min_zoom"] %>" data-zoom-max="<%= entry["max_zoom"] %>">
+          <td class="mapkey-table-key align-middle">
             <%= image_tag "key/#{name}/#{entry['image']}" %>
           </td>
           <td class="mapkey-table-value">
             <%= image_tag "key/#{name}/#{entry['image']}" %>
           </td>
           <td class="mapkey-table-value">