<%= h(t.taginfo.key_comparison) %>
<% (0..@keys.size-1).each do |num| %>
<%= @desc[num] %>
|
<% end %>
<% @keys.each_with_index do |key, num| %>
|
<%= h(t.osm.all) %> |
<%= @count_all[num].to_s_with_ts %> |
|
|
<%= h(t.osm.nodes) %> |
<%= @count_nodes[num].to_s_with_ts %> |
|
|
<%= h(t.osm.ways) %> |
<%= @count_ways[num].to_s_with_ts %> |
|
|
<%= h(t.osm.relations) %> |
<%= @count_relations[num].to_s_with_ts %> |
|
|
<% end %>
<% @keys.each_with_index do |key, num| %>
<%= h(t.misc.prevalent_values) %>:
|
<% end %>
<% @keys.each_with_index do |key, num| %>
<%= h(t.pages.key.wiki_pages.title) %>:
<%= @wiki_pages[num].map{ |lang| '' + lang + '' }.join(' ') %>
|
<% end %>
<% @keys.each_with_index do |key, num| %>
<% if @has_map[num] %>
<% end %>
|
<% end %>
<% @keys.each do |key| %>
|
<% end %>
<% javascript do
JS.raw(<<"JAVASCRIPT")
function page_init2() {
var keys = #{ @keys.to_json },
prevalent_values = #{ @prevalent_values.to_json };
jQuery.each(keys, function(index, key) {
jQuery('.key' + index + ' h2').html(link_to_key(key));
jQuery('.key' + index + ' div.prevalent_values').html(fmt_prevalent_value_list(key, prevalent_values[index]));
});
jQuery('div.prevalent_values a').tipsy({ opacity: 1, delayIn: 500, gravity: 'e' });
}
JAVASCRIPT
end
%>