From 520653a8706185f4c182f78d6f373c91a40eab54 Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Fri, 6 Mar 2015 09:29:50 +0100 Subject: Add history database to download page. --- web/views/download.erb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'web/views') 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 @@ <%= File.size("../../data/taginfo-master.db").to_bytes rescue "#{ h(t.misc.unknown) }" %> <%= h(t.sources.master.description) %> -<% Source.visible.each_with_index do |source, n| c = (n%2==0) ? ' even' : '' %> + + taginfo-history.db.bz2 + <%= File.size("../../download/taginfo-history.db.bz2").to_bytes rescue "#{ h(t.misc.unknown) }" %> + <%= File.size("../../data/taginfo-history.db").to_bytes rescue "#{ h(t.misc.unknown) }" %> + <%= h(t.sources.history.description) %> + +<% Source.visible.each_with_index do |source, n| c = (n%2==0) ? '' : ' even' %> <%= source.link_download %> <%= source.dbpack != 0 ? source.dbpack : "#{ t.misc.unknown }" %> -- cgit v1.2.3