From 9ddee3494f931439e7c47eddee48ec9c6a09e662 Mon Sep 17 00:00:00 2001
From: Dan McGee
Date: Tue, 26 Feb 2013 19:12:42 -0600
Subject: 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
---
templates/public/download.html | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/templates/public/download.html b/templates/public/download.html
index 7936efb..71da1c1 100644
--- a/templates/public/download.html
+++ b/templates/public/download.html
@@ -25,7 +25,7 @@
can always be updated with `pacman -Syu`.
- - Current Release: {{ release.version }}
+ {% if release.version %}- Current Release: {{ release.version }}
{% endif %}
{% if release.kernel_version %}- Included Kernel: {{ release.kernel_version }}
{% endif %}
{% if release.file_size %}- ISO Size: {{ release.file_size|filesizeformat }}
{% endif %}
- Installation Guide
@@ -57,12 +57,12 @@
download is finished, so you can seed it back to others.
A web-seed capable client is recommended for fastest download speeds.
- {% endif %}
Netboot
--
cgit v1.2.3-24-g4f1b