2 <table class="mapkey-table">
3 <% YAML.load_file("#{RAILS_ROOT}/config/key.yml").each do |name,data| %>
4 <% if params[:layer] == name %>
5 <% data.each do |entry| %>
6 <% if params[:zoom].to_i >= entry['min_zoom'] && params[:zoom].to_i <= entry['max_zoom'] %>
8 <td class="mapkey-table-key" align="center">
9 <%= image_tag "key/#{name}/#{entry['image']}" %>
11 <td class="mapkey-table-value">
12 <%= [*t("site.key.table.entry.#{entry['name']}")].to_sentence %>