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/views | |
parent | b87fe508a5ff02860249c494e5370b2bd608167a (diff) | |
download | taginfo-520653a8706185f4c182f78d6f373c91a40eab54.tar taginfo-520653a8706185f4c182f78d6f373c91a40eab54.tar.gz |
Add history database to download page.
Diffstat (limited to 'web/views')
-rw-r--r-- | web/views/download.erb | 8 |
1 files changed, 7 insertions, 1 deletions
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> |