summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-02-26 19:12:42 -0600
committerDan McGee <dan@archlinux.org>2013-02-26 19:13:23 -0600
commit9ddee3494f931439e7c47eddee48ec9c6a09e662 (patch)
tree9756eab260cc78eba2b0f7ddfa142e28ba53e60d
parentddcba1117722095bfb5f4f1c98273c54e747eea9 (diff)
Don't blow up in download template if no releases exist
Protect a few more things in {% if %} block logic. Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--templates/public/download.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/public/download.html b/templates/public/download.html
index 7936efb5..71da1c17 100644
--- a/templates/public/download.html
+++ b/templates/public/download.html
@@ -25,7 +25,7 @@
can always be updated with `pacman -Syu`.</p>
<ul>
- <li><strong>Current Release:</strong> {{ release.version }}</li>
+ {% if release.version %}<li><strong>Current Release:</strong> {{ release.version }}</li>{% endif %}
{% if release.kernel_version %}<li><strong>Included Kernel:</strong> {{ release.kernel_version }}</li>{% endif %}
{% if release.file_size %}<li><strong>ISO Size:</strong> {{ release.file_size|filesizeformat }}</li>{% endif %}
<li><a href="https://wiki.archlinux.org/index.php/Installation_Guide">Installation Guide</a></li>
@@ -57,12 +57,12 @@
download is finished, so you can seed it back to others.
<em>A web-seed capable client is recommended for fastest download speeds.</em></p>
- <ul>
+ {% if release %}<ul>
<li><a href="{{ release.magnet_uri }}"
title="Magnet link">Magnet link for {{ release.version }}</a></li>
<li><a href="{% url 'releng-release-torrent' release.version %}"
title="Download torrent">Torrent for {{ release.version }}</a></li>
- </ul>
+ </ul>{% endif %}
<h3>Netboot</h3>