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