X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/e731dd71a77ad4ad1e9db22535e89444bb98e5d9..8cef62cd2cec4a297e46b4f2a86c9afeadb3b283:/app/views/site/key.html.erb?ds=inline diff --git a/app/views/site/key.html.erb b/app/views/site/key.html.erb index abcf220e3..370ae3b64 100644 --- a/app/views/site/key.html.erb +++ b/app/views/site/key.html.erb @@ -1,13 +1,13 @@
- - <% YAML.load_file(Rails.root.join("config", "key.yml")).each do |name,data| %> +
+ <% YAML.load_file(Rails.root.join("config/key.yml")).each do |name,data| %> <% data.each do |entry| %> " data-zoom-max="<%= entry["max_zoom"] %>"> - <% end %>
+ <%= image_tag "key/#{name}/#{entry['image']}" %> - <%= [*t(".table.entry.#{entry['name']}")].to_sentence %> + <%= Array(t(".table.entry.#{entry['name']}")).to_sentence %>