From 149c5f60b7b0e7ff7109ce513e020e4067dd8e68 Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Sun, 18 May 2014 06:24:16 +0200 Subject: Rename /comparison page to /compare. --- web/views/compare.erb | 98 ++++++++++++++++++++++++++++++++++++++++++++++++ web/views/comparison.erb | 98 ------------------------------------------------ 2 files changed, 98 insertions(+), 98 deletions(-) create mode 100644 web/views/compare.erb delete mode 100644 web/views/comparison.erb (limited to 'web/views') diff --git a/web/views/compare.erb b/web/views/compare.erb new file mode 100644 index 0000000..af69256 --- /dev/null +++ b/web/views/compare.erb @@ -0,0 +1,98 @@ +
+

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

+
+ + + <% @data.each_with_index do |data, num| %> + + <% end %> + + + <% @data.each_with_index do |data, num| %> + + <% end %> + + + <% @data.each_with_index do |data, num| %> + + <% end %> + + + <% @data.each_with_index do |data, num| %> + + <% end %> + + + <% @data.each_with_index do |data, num| %> + + <% end %> + + + <% @data.each_with_index do |data, num| %> + + <% end %> + +
+

+

<%= data[:desc] %>

+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
<%= h(t.osm.all) %><%= data[:count_all].to_s_with_ts %>
<%= h(t.osm.nodes) %><%= data[:count_nodes].to_s_with_ts %>
<%= h(t.osm.ways) %><%= data[:count_ways].to_s_with_ts %>
<%= h(t.osm.relations) %><%= data[:count_relations].to_s_with_ts %>
+
+

+
+
+

<%= data[:value].nil? ? h(t.pages.key.wiki_pages.title) : h(t.pages.tag.wiki_pages.title) %>:

+ <%= data[:wiki_pages].map{ |lang| '' + lang + '' }.join(' ') %> +
+ <% if data[:has_map] %> +
+ <% key_or_tag = data[:value].nil? ? 'key' : 'tag' %> + + +
+ <% end %> +
+<% javascript do + JS.raw(<<"JAVASCRIPT") +function page_init2() { + var data = #{ @data.to_json }; + jQuery.each(data, function(index, data) { + if (data.value) { + jQuery('.item' + index + ' h2').html(link_to_tag(data.key, data.value)); + } else { + jQuery('.item' + index + ' h2').html(link_to_key(data.key)); + jQuery('.item' + index + '.prevalent_values p b').html('#{ h(t.misc.prevalent_values)}:'); + jQuery('.item' + index + '.prevalent_values div').html(fmt_prevalent_value_list(data.key, data.prevalent_values)); + } + }); + jQuery('div.prevalent_values a').tipsy({ opacity: 1, delayIn: 500, gravity: 'w' }); + jQuery('span.lang').tipsy({ opacity: 1, delayIn: 500, gravity: 'n' }); +} +JAVASCRIPT +end +%> diff --git a/web/views/comparison.erb b/web/views/comparison.erb deleted file mode 100644 index af69256..0000000 --- a/web/views/comparison.erb +++ /dev/null @@ -1,98 +0,0 @@ -
-

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

-
- - - <% @data.each_with_index do |data, num| %> - - <% end %> - - - <% @data.each_with_index do |data, num| %> - - <% end %> - - - <% @data.each_with_index do |data, num| %> - - <% end %> - - - <% @data.each_with_index do |data, num| %> - - <% end %> - - - <% @data.each_with_index do |data, num| %> - - <% end %> - - - <% @data.each_with_index do |data, num| %> - - <% end %> - -
-

-

<%= data[:desc] %>

-
- - - - - - - - - - - - - - - - - - - - - - - - - -
<%= h(t.osm.all) %><%= data[:count_all].to_s_with_ts %>
<%= h(t.osm.nodes) %><%= data[:count_nodes].to_s_with_ts %>
<%= h(t.osm.ways) %><%= data[:count_ways].to_s_with_ts %>
<%= h(t.osm.relations) %><%= data[:count_relations].to_s_with_ts %>
-
-

-
-
-

<%= data[:value].nil? ? h(t.pages.key.wiki_pages.title) : h(t.pages.tag.wiki_pages.title) %>:

- <%= data[:wiki_pages].map{ |lang| '' + lang + '' }.join(' ') %> -
- <% if data[:has_map] %> -
- <% key_or_tag = data[:value].nil? ? 'key' : 'tag' %> - - -
- <% end %> -
-<% javascript do - JS.raw(<<"JAVASCRIPT") -function page_init2() { - var data = #{ @data.to_json }; - jQuery.each(data, function(index, data) { - if (data.value) { - jQuery('.item' + index + ' h2').html(link_to_tag(data.key, data.value)); - } else { - jQuery('.item' + index + ' h2').html(link_to_key(data.key)); - jQuery('.item' + index + '.prevalent_values p b').html('#{ h(t.misc.prevalent_values)}:'); - jQuery('.item' + index + '.prevalent_values div').html(fmt_prevalent_value_list(data.key, data.prevalent_values)); - } - }); - jQuery('div.prevalent_values a').tipsy({ opacity: 1, delayIn: 500, gravity: 'w' }); - jQuery('span.lang').tipsy({ opacity: 1, delayIn: 500, gravity: 'n' }); -} -JAVASCRIPT -end -%> -- cgit v1.2.3