summaryrefslogtreecommitdiffstats
path: root/templates/releng/release_list.html
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-01-19 19:06:47 +0100
committerDan McGee <dan@archlinux.org>2013-01-19 19:08:31 +0100
commit1a7e5d22f1c4e948c624d26b4d8c1ed30189acfe (patch)
treefeb3473bb7a31868910a45bc481c471f765bf565 /templates/releng/release_list.html
parent8cfaa39a0464f7ee35af76473d3e73ae587a6cb8 (diff)
downloadarchweb-1a7e5d22f1c4e948c624d26b4d8c1ed30189acfe.tar.gz
archweb-1a7e5d22f1c4e948c624d26b4d8c1ed30189acfe.tar.xz
Add basic release list and details views
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/releng/release_list.html')
-rw-r--r--templates/releng/release_list.html44
1 files changed, 44 insertions, 0 deletions
diff --git a/templates/releng/release_list.html b/templates/releng/release_list.html
new file mode 100644
index 0000000..1657249
--- /dev/null
+++ b/templates/releng/release_list.html
@@ -0,0 +1,44 @@
+{% extends "base.html" %}
+{% load url from future %}
+
+{% block title %}Arch Linux - Releases{% endblock %}
+
+{% block head %}
+<link rel="alternate" type="application/rss+xml" title="Arch Linux News Updates" href="/feeds/releases/" />
+{% endblock %}
+
+{% block content %}
+<div id="release-list" class="box">
+
+ <h2>Releases</h2>
+
+ <table id="release-table" class="results">
+ <thead>
+ <tr>
+ <th>Release Date</th>
+ <th>Version</th>
+ <th>Kernel Version</th>
+ <th>Available?</th>
+ <th>Torrent</th>
+ <th>Magnet</th>
+ <th>Download Size</th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for item in release_list %}
+ <tr class="{% cycle 'odd' 'even' %}">
+ <td>{{ item.release_date|date }}</td>
+ <td><a href="{{ item.get_absolute_url }}" title="Release details for {{ item.version }}">{{ item.version }}</a></td>
+ <td>{{ item.kernel_version|default:"" }}</td>
+ <td>{{ item.available|yesno }}</td>
+ <td>{% if item.available %}<a href="https://www.archlinux.org/{{ item.iso_url }}.torrent"
+ title="Download torrent for {{ item.version }}">Torrent</a>{% endif %}</td>
+ <td>{% if item.available %}<a href="{{ item.magnet_uri }}">Magnet</a>{% endif %}</td>
+ <td>{% if item.file_size %}{{ item.file_size|filesizeformat }}{% endif %}</td>
+ </tr>
+ {% endfor %}
+ </tbody>
+ </table>
+
+</div>
+{% endblock %}