summaryrefslogtreecommitdiff
path: root/web/views/download.erb
blob: 9eb95aab68a597ccae1a733096c8344f9081d0f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<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>
<% 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>