diff options
author | Jochen Topf <jochen@topf.org> | 2012-01-15 20:49:13 +0100 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2012-01-15 20:49:13 +0100 |
commit | 01eb71897dfdd521d9f0ab5f8435b7bf6c431bba (patch) | |
tree | eea1b802066b2fefe4e0295915cff2cdd006325f /web/views/download.erb | |
parent | 72f927e395b643ad97e63ccb5e4e0e8cc5c43078 (diff) | |
download | taginfo-01eb71897dfdd521d9f0ab5f8435b7bf6c431bba.tar taginfo-01eb71897dfdd521d9f0ab5f8435b7bf6c431bba.tar.gz |
Continuing the great layout change...
Diffstat (limited to 'web/views/download.erb')
-rw-r--r-- | web/views/download.erb | 56 |
1 files changed, 33 insertions, 23 deletions
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 @@ -<h1><%= t.taginfo.download %></h1> - -<%= t.pages.download.index.intro %> - -<table class="list"> - <tr> - <th class="tl"><%= t.pages.download.index.file %></th> - <th class="tr"><%= t.pages.download.index.packed %></th> - <th class="tr"><%= t.pages.download.index.unpacked %></th> - <th class="tl"><%= t.pages.download.index.description %></th> - </tr> -<% Source.visible.each do |source| %> - <td class="tl"><%= source.link_download %></td> - <td class="tr"><%= source.dbpack %></td> - <td class="tr"><%= source.dbsize %></td> - <td class="tl"><%= t.sources[source.id].description %></td> - </tr> +<div class="pre"> + <h1 class="section"><%= t.taginfo.download %></h1> + <%= t.pages.download.index.intro %> +</div> +<div class="box resize"> + <table class="list"> + <tr> + <th class="tl"><%= t.pages.download.index.file %></th> + <th class="tr"><%= t.pages.download.index.packed %></th> + <th class="tr"><%= t.pages.download.index.unpacked %></th> + <th class="tl"><%= t.pages.download.index.description %></th> + </tr> + <tr> + <td class="tl"><a rel="nofollow" href="/download/taginfo-master.db.bz2">taginfo-master.db.bz2</a></td> + <td class="tr"><%= File.size("../../download/taginfo-master.db.bz2").to_bytes rescue "<i>#{ t.pages.download.index.unknown }</i>" %></td> + <td class="tr"><%= File.size("../../data/taginfo-master.db").to_bytes rescue "<i>#{ t.pages.download.index.unknown }</i>" %></td> + <td class="tl"><%= t.sources.master.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 %></td> + <td class="tr<%= c %>"><%= source.dbsize %></td> + <td class="tl<%= c %>"><%= t.sources[source.id].description %></td> + </tr> <% end %> - <td class="tl"><a rel="nofollow" href="/download/taginfo-master.db.bz2">taginfo-master.db.bz2</a></td> - <td class="tr"><%= File.size("../../download/taginfo-master.db.bz2").to_bytes rescue "<i>#{ t.pages.download.index.unknown }</i>" %></td> - <td class="tr"><%= File.size("../../data/taginfo-master.db").to_bytes rescue "<i>#{ t.pages.download.index.unknown }</i>" %></td> - <td class="tl"><%= t.sources.master.description %></td> - </tr> -</table> + </table> +</div> +<% javascript do + JQuery.ready do + JS.raw(%Q{ resize_wrapper(); }) + end +end +%> |