summaryrefslogtreecommitdiff
path: root/web/views/download.erb
blob: b7bc4fc40cd12ee3c909e514c2b69831e665a973 (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
25
26
27
28
29
30
31
<h1>Download</h1>

<p>Here you can download the databases used by Taginfo. All the data is stored
in <img src="/img/link-extern.gif" alt=""/><a class="extlink"
href="http://www.sqlite.org/">Sqlite</a> databases. The database files are then
packed with <img src="/img/link-extern.gif" alt=""/><a class="extlink"
href="http://www.bzip.org/">bzip2</a>.</p>

<p>If you don't want to download these databases, but need automated access to
the data, you can also use the <a href="/about">API</a>.

<table class="list">
    <tr>
        <th></th><th></th><th>File</th><th>Packed</th><th>Unpacked</th><th>Description</th><th></th>
    </tr>
<% Source.each do |source| %>
    <tr><td class="border"></td>
        <td style="text-align: center;"><%= source.img %></td>
        <td><%= source.link_download %></td>
        <td style="text-align: right;"><%= source.dbpack %></td><td style="text-align: right;"><%= source.dbsize %></td>
        <td><%= t.source[source.id].description %></td>
    <td class="border"></td></tr>
<% end %>
    <tr><td class="border"></td>
        <td style="text-align: center;"><img src="/img/taginfo.32.png" alt="Taginfo" width="32" height="16"/></td>
        <td><a href="/download/taginfo-master.db.bz2">taginfo-master.db.bz2</a></td>
        <td style="text-align: right;"><%= File.size("../../download/taginfo-master.db.bz2").to_bytes rescue '<i>unknown</i>' %></td><td style="text-align: right;"><%= File.size("../../data/taginfo-master.db").to_bytes rescue '<i>unknown</i>' %></td>
        <td><%= t.source.master.description %></td>
    <td class="border"></td></tr>
    <tr><th colspan="7"/></tr>
</table>