From 01eb71897dfdd521d9f0ab5f8435b7bf6c431bba Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Sun, 15 Jan 2012 20:49:13 +0100 Subject: Continuing the great layout change... --- web/views/about.erb | 32 +- web/views/apidoc.erb | 2 +- web/views/download.erb | 56 ++-- web/views/embed/key.erb | 6 +- web/views/embed/layout.erb | 6 +- web/views/embed/tag.erb | 6 +- web/views/index.erb | 62 ++-- web/views/key.erb | 56 ++-- web/views/keys.erb | 15 +- web/views/layout.erb | 25 +- web/views/reports/characters_in_keys.erb | 50 +-- web/views/reports/database_statistics.erb | 102 ++++--- .../frequently_used_keys_without_wiki_page.erb | 38 +-- web/views/reports/index.erb | 41 +-- web/views/reports/josm_styles.erb | 28 +- web/views/reports/key_lengths.erb | 11 +- ...guage_comparison_table_for_keys_in_the_wiki.erb | 46 +-- web/views/reports/languages.erb | 15 +- .../reports/wiki_pages_about_non_existing_keys.erb | 17 +- web/views/search.erb | 10 +- web/views/search_tags.erb | 10 +- web/views/sources.erb | 26 ++ web/views/sources/index.erb | 20 -- web/views/sources/merkaartor/index.erb | 4 - web/views/tag.erb | 60 ++-- web/views/tags.erb | 15 +- web/views/test/index.erb | 25 +- web/views/test/key.erb | 340 --------------------- web/views/test/wiki_import.erb | 23 +- 29 files changed, 436 insertions(+), 711 deletions(-) create mode 100644 web/views/sources.erb delete mode 100644 web/views/sources/index.erb delete mode 100644 web/views/sources/merkaartor/index.erb delete mode 100644 web/views/test/key.erb (limited to 'web/views') diff --git a/web/views/about.erb b/web/views/about.erb index 0e64c48..54d9b16 100644 --- a/web/views/about.erb +++ b/web/views/about.erb @@ -1,5 +1,18 @@ -

About

+
+

Sources

+
+

Taginfo integrates data about tags from several sources:

+

From the OSM database statistics about key and tag usage.

+

The Wiki contains some documentation for keys and tags.

+

Icons and styles are taken from the JOSM editor + configuration.

+

More information about the sources on the wiki...

+
+
+ + +

About taginfo

OpenStreetMap uses tags to add meaning to geographic objects. There is no fixed list of those tags. New tags can be invented and used as needed. Everybody can come up with a new tag and add it to new or existing objects. @@ -17,15 +30,6 @@ also gets information about those tags from the wiki and from other places. Tagi tries to bring together all information about tags to help you understand how they are used and what they mean.

-

Sources

- -

Wiki: The OSM wiki -contains lots of documentation about tags but the information is far from complete. -Taginfo finds all pages beginning with 'Key:' or 'Tag:' and their -counterparts for other languages (for example 'DE:Key:...').

- -

JOSM: JOSM is one of the most popular OSM editors.

-

Contact

Taginfo was created and is maintained by Jochen Topf. You can contact @@ -59,11 +63,3 @@ Please use the API responsibly. Do not create huge amounts of requests to get the whole database or large chunks of it, instead use the database downloads provided.

-

Similar tools

- -

Taginfo is not the first tool to try something like this. Others like -Tagwatch, -Tagstat, and -Osmdoc came before it.

- - diff --git a/web/views/apidoc.erb b/web/views/apidoc.erb index d1cf6c7..d3685b3 100644 --- a/web/views/apidoc.erb +++ b/web/views/apidoc.erb @@ -1,4 +1,4 @@ -

API Documentation

+

API Documentation

See the OSM wiki for general information about the API.

diff --git a/web/views/download.erb b/web/views/download.erb index 9eb95aa..0e06179 100644 --- a/web/views/download.erb +++ b/web/views/download.erb @@ -1,24 +1,34 @@ -

<%= t.taginfo.download %>

- -<%= t.pages.download.index.intro %> - - - - - - - - -<% Source.visible.each do |source| %> - - - - - +
+

<%= t.taginfo.download %>

+ <%= t.pages.download.index.intro %> +
+
+
<%= t.pages.download.index.file %><%= t.pages.download.index.packed %><%= t.pages.download.index.unpacked %><%= t.pages.download.index.description %>
<%= source.link_download %><%= source.dbpack %><%= source.dbsize %><%= t.sources[source.id].description %>
+ + + + + + + + + + + + +<% Source.visible.each_with_index do |source, n| c = (n%2==0) ? ' even' : '' %> + + + + + + <% end %> - - - - - -
<%= t.pages.download.index.file %><%= t.pages.download.index.packed %><%= t.pages.download.index.unpacked %><%= t.pages.download.index.description %>
taginfo-master.db.bz2<%= File.size("../../download/taginfo-master.db.bz2").to_bytes rescue "#{ t.pages.download.index.unknown }" %><%= File.size("../../data/taginfo-master.db").to_bytes rescue "#{ t.pages.download.index.unknown }" %><%= t.sources.master.description %>
<%= source.link_download %><%= source.dbpack %><%= source.dbsize %><%= t.sources[source.id].description %>
taginfo-master.db.bz2<%= File.size("../../download/taginfo-master.db.bz2").to_bytes rescue "#{ t.pages.download.index.unknown }" %><%= File.size("../../data/taginfo-master.db").to_bytes rescue "#{ t.pages.download.index.unknown }" %><%= t.sources.master.description %>
+ + +<% javascript do + JQuery.ready do + JS.raw(%Q{ resize_wrapper(); }) + end +end +%> diff --git a/web/views/embed/key.erb b/web/views/embed/key.erb index 5b457f0..e1aaa09 100644 --- a/web/views/embed/key.erb +++ b/web/views/embed/key.erb @@ -1,11 +1,11 @@ <% if @key == '{{{key}}}' %> -Taginfo Taginfo [More...] +taginfo [More...]

Statistics about the key will appear here.

<% elsif @dbkey.nil? %> -Taginfo Taginfo [More...] +taginfo [More...]

This key does not appear in the OSM database.

<% else %> -Taginfo Taginfo [More...] +taginfo [More...]
diff --git a/web/views/embed/layout.erb b/web/views/embed/layout.erb index 9f02fb3..edb3c28 100644 --- a/web/views/embed/layout.erb +++ b/web/views/embed/layout.erb @@ -4,7 +4,7 @@
Nodes