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 %>