diff options
author | Jochen Topf <jochen@topf.org> | 2015-03-06 09:29:50 +0100 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2015-03-06 09:34:33 +0100 |
commit | 520653a8706185f4c182f78d6f373c91a40eab54 (patch) | |
tree | 344df2c7e15d864836e1570e57f5240060059c14 /web | |
parent | b87fe508a5ff02860249c494e5370b2bd608167a (diff) | |
download | taginfo-520653a8706185f4c182f78d6f373c91a40eab54.tar taginfo-520653a8706185f4c182f78d6f373c91a40eab54.tar.gz |
Add history database to download page.
Diffstat (limited to 'web')
-rw-r--r-- | web/i18n/de.yml | 3 | ||||
-rw-r--r-- | web/i18n/en.yml | 3 | ||||
-rw-r--r-- | web/views/download.erb | 8 |
3 files changed, 13 insertions, 1 deletions
diff --git a/web/i18n/de.yml b/web/i18n/de.yml index f1d36b7..9659510 100644 --- a/web/i18n/de.yml +++ b/web/i18n/de.yml @@ -459,6 +459,9 @@ sources: master: name: Master description: Zusammengefaßte Statistiken und Verschiedenes für die Taginfo-Webseite. + history: + name: History + description: Zusammengefaßte Statistiken über die Zeit. db: name: Datenbank description: Statistik über jeden Key und Tag aus der OSM-Datenbank (Planet-Datei). diff --git a/web/i18n/en.yml b/web/i18n/en.yml index 4539099..74d1fee 100644 --- a/web/i18n/en.yml +++ b/web/i18n/en.yml @@ -439,6 +439,9 @@ sources: master: name: Master description: Aggregate statistics and miscellaneous data needed for the taginfo user interface. + history: + name: History + description: Aggregate statistics over time. db: name: Database description: Statistics about each key and each tag from the main OSM database (planet file). diff --git a/web/views/download.erb b/web/views/download.erb index 27ac3a1..f38cf75 100644 --- a/web/views/download.erb +++ b/web/views/download.erb @@ -16,7 +16,13 @@ <td class="tr"><%= File.size("../../data/taginfo-master.db").to_bytes rescue "<span class='empty'>#{ h(t.misc.unknown) }</span>" %></td> <td class="tl"><%= h(t.sources.master.description) %></td> </tr> -<% Source.visible.each_with_index do |source, n| c = (n%2==0) ? ' even' : '' %> + <tr> + <td class="tl even"><a rel="nofollow" href="/download/taginfo-history.db.bz2">taginfo-history.db.bz2</a></td> + <td class="tr even"><%= File.size("../../download/taginfo-history.db.bz2").to_bytes rescue "<span class='empty'>#{ h(t.misc.unknown) }</span>" %></td> + <td class="tr even"><%= File.size("../../data/taginfo-history.db").to_bytes rescue "<span class='empty'>#{ h(t.misc.unknown) }</span>" %></td> + <td class="tl even"><%= h(t.sources.history.description) %></td> + </tr> +<% Source.visible.each_with_index do |source, n| c = (n%2==0) ? '' : ' even' %> <tr> <td class="tl<%= c %>"><%= source.link_download %></td> <td class="tr<%= c %>"><%= source.dbpack != 0 ? source.dbpack : "<span class='empty'>#{ t.misc.unknown }</span>" %></td> |