<% if @count_all_values <= TaginfoConfig.get('xapi.max_results', 1000) %> <%= xapi_link(@filter_xapi, @key) %> <%= josm_link(@filter_xapi, @key) %> <% else %> XAPI JOSM <% end %> <% if @count_all_values <= TaginfoConfig.get('level0.max_results', 10) %> <%= level0_link() %> <% else %> Level0 Editor <% end %> <%= turbo_link(@count_all_values, @filter_type, @key) %>

<%= @desc %>

<%= h(t.pages.key.overview.distribution_of_values) %>

<% if @image_url %>
<% end %>

<%= h(t.taginfo.overview) %>

<%= t.pages.key.overview.objects_last_edited_by(@user_count.to_s_with_ts) %>

<%= h(t.pages.key.values_used) %>

<%= h(t.pages.key.other_keys_used.title) %>

<% if TaginfoConfig.get('user_interface.key_page.show_tab_similar', false) %>

<%= h(t.pages.key.similar.title) %>

<% end %>

<%= h(t.pages.key.geographic_distribution.title) %>

<% if @filter_type == 'all' %>
<%= TaginfoConfig.get('geodistribution.image_attribution') %>
<% elsif @filter_type == 'nodes' %>
<%= TaginfoConfig.get('geodistribution.image_attribution') %>
<% elsif @filter_type == 'ways' %>
<%= TaginfoConfig.get('geodistribution.image_attribution') %>
<% elsif @filter_type == 'relations' %>

<%= h(t.pages.key.geographic_distribution.relations) %>

<% end %>

<%= h(t.pages.key.wiki_pages.title) %>

<% if @wiki_count > 0 %>
<% else %>

<%= h(t.pages.key.wiki_pages.none_found) %>

<%= h(t.pages.key.wiki_pages.create) %>

<% end %>

<%= h(t.pages.key.projects.title) %>

<% javascript do JS.raw(<<"JAVASCRIPT") function redraw_chart() { jQuery('#canvas-values').html(''); var max_height = jQuery(window).height() - 300; create_chart({ key: #{ @key.to_json }, width: 160, height: Math.min(440, max_height), max: #{ @count_all_values }, data: #{ @prevalent_values.to_json() } }); } function page_init2() { var filter = #{ @filter_type.to_json }, key = #{ @key.to_json }; jQuery('h1').html(fmt_key(key)); if (cookies_enabled()) { comparison_list_update(key); jQuery('#list').bind('change', function() { comparison_list_change(key); }); } else { jQuery('#list-form').html('Enable cookies for comparison function!'); } jQuery('#level0_button').bind('click', function() { return level0_editor('#{ TaginfoConfig.get('level0.overpass_url_prefix') }', '#{ TaginfoConfig.get('level0.level0_url_prefix') }', filter, key, undefined); }); init_tabs([key, filter, #{ r18n.locale.code.to_json }]); redraw_chart(); jQuery(window).resize(redraw_chart); } JAVASCRIPT end %>