-{% if release.files %}
- <h3>{{ release.name }}</h3>
+<h2>
+ {% if latest %}{{ _("Latest release") }}:{% end %}
+ {{ escape(release.name) }}
+</h2>
- <!--
- {% for file in release.files %}
- {% if file.type == "iso" %}
- <div class="bigdownload">
- <a href="{{ file.url }}">
- {{ _("Begin download") }}<br />{{ release.name }}
- </a>
- </div>
- {% end %}
- {% end %}
- -->
+<br>
- {% if release.stable == "N" %}
- <p class="warning">
- <strong>{{ _("Beware!") }}</strong>
- {{ _("<em>%s</em> was not released yet and so it is not recommended for production use.") % release.name }}
- </p>
- {% end %}
+{% if release.files %}
+ <div class="tabbable">
+ <ul class="nav nav-tabs">
+ <li class="active">
+ <a href="#arch_unknown" data-toggle="tab">{{ _("Choose an architecture:") }}</a>
+ </li>
+ {% if files["i586"] %}
+ <li><a href="#arch_i586" data-toggle="tab">i586</a></li>
+ {% end %}
+ {% if files["arm"] %}
+ <li><a href="#arch_arm" data-toggle="tab">ARM</a></li>
+ {% end %}
+ </ul>
- <table class="download">
- {% for file in release.files %}
- <tr class="{{ file.type }}">
- <td class="icon">
- <img src="{{ static_url("images/download_type_%s.png" % file.type) }}"
- alt="{{ file.type }}" />
- </td>
- <td class="link">
- <a href="{{ file.url }}">{{ _(file.desc) }}</a>
- </td>
- <td>
- {{ _(file.rem) }}
- </td>
- </tr>
- {% end %}
+ <div class="tab-content">
+ <div class="tab-pane active" id="arch_unknown">
+ {{ modules.DownloadButton(release) }}
- <tr>
- <td colspan="3">
-
- </td>
- </tr>
-<!-- <tr>
- <td colspan="3">
- <p>
- {{ _("With starting the download you accept the <a href=\"/download/legal\">legal terms</a>.") }}
- </p>
- </td>
- </tr>
- <tr>
- <td colspan="3">
-
- </td>
- </tr>
--->
- <tr>
- <td colspan="3">
- <p>{{ _("Checksums") }} (SHA1):</p>
- <pre>{% for file in release.files %}{{ file.sha1 }} {{ file.basename }}{{ "\n" }}{% end %}</pre>
- </td>
- </tr>
- </table>
+ {% if lang == "de" %}
+ <p>
+ Bitte klicke auf den Buttom um IPFire für
+ i586-kompatible Computer als ISO-Installationsimage
+ herunterzuladen.
+ Dies ist das am häufigsten benötigte Medium.
+ </p>
+ <p>
+ In der Tableiste finden sich alternative Architekturen
+ und Imageformate zum Download.
+ </p>
+ {% else %}
+ <p>
+ Please click the button to download the IPFire
+ ISO image for i586-compatible computers.
+ This is the default image, you will most likely
+ need to install IPFire.
+ </p>
+ <p>
+ You may also pick your desired architecture from
+ the tabs above and see a list of all image
+ formats.
+ </p>
+ {% end %}
+
+ {% if release.stable == "N" %}
+ <div class="alert alert-info">
+ {% if lang == "de" %}
+ Dieses Release ist nicht als <em>stabile</em> Version
+ von IPFire freigegeben und nur für Testumgebungen gedacht.
+ Daher sollte dieses Release nicht in produktiven
+ Umgebungen eingesetzt werden und Fehler berichtet werden.
+ {% else %}
+ This release is not a stable version of IPFire and
+ intended for testing purposes only.
+ Do not use this release in production and please
+ report any bugs.
+ {% end %}
+ </div>
+ {% end %}
+ </div>
- <br class="clear" />
+ {% for arch in files.keys() %}
+ <div class="tab-pane" id="arch_{{ arch }}">
+ <!-- {% if lang == "de" %}
+ {% if arch == "i586" %}
+ <p>
+ Diese Images sind für den Einsatz auf Intel-kompatiblen
+ Systemen gedacht. Dazu gehört die gesamte Klasse der
+ x86er Systeme ab Pentium I.
+ </p>
+ {% end %}
+ {% else %}
+ {% if arch == "i586" %}
+ <p>
+ These images are built for Intel-compatible systems.
+ This is the entire class of x86 CPUs since Intel
+ Pentium I.
+ </p>
+ {% end %}
+ {% end %} -->
+ <table class="table table-striped table-bordered">
+ <thead>
+ <tr>
+ <th>{{ _("Image type") }}</th>
+ <th>{{ _("Size") }}</th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for file in files[arch] %}
+ <tr>
+ <td>
+ <a class="download-splash" href="{{ file.url }}">{{ _(file.desc) }}</a>
+ <br>{{ _(file.rem) }}
+ </td>
+ <td>
+ {{ format_size(file.size) }}
+ </td>
+ </tr>
+ {% end %}
+ </tbody>
+ </table>
+ </div>
+ {% end %}
+ </div>
+ </div>
{% else %}
- <p>{{ _("There are no downloads available for this release.") }}</p>
+ <div class="alert">
+ {{ _("There are no downloads available for this release.") }}
+ </div>
{% end %}