summaryrefslogtreecommitdiff
path: root/templates/todolists/view.html
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-01-28 23:00:18 -0600
committerDan McGee <dan@archlinux.org>2013-01-28 23:00:18 -0600
commit839371f3f8a7b6de199c48735098567db297928a (patch)
treea7b806a6fa0d0365982f90c987f58db5b91d6a85 /templates/todolists/view.html
parent44dde6f02f649244d7c1b9dcf03d8ce592bbbbcb (diff)
Fix missing template variable for removed todolist packages
When there was no longer an attached package, running in template debug mode showed we were trying to dereference a variable that didn't exist. Fix the issue by adding a bit more to the if conditional block. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/todolists/view.html')
-rw-r--r--templates/todolists/view.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/todolists/view.html b/templates/todolists/view.html
index 934e3ae8..1b9a9e37 100644
--- a/templates/todolists/view.html
+++ b/templates/todolists/view.html
@@ -76,8 +76,10 @@
<td>{% todopkg_details_link pkg %}</td>
{% if pkg.pkg.flag_date %}
<td><span class="flagged">{{ pkg.pkg.full_version }}</span></td>
- {% else %}
+ {% elif pkg.pkg %}
<td>{{ pkg.pkg.full_version }}</td>
+ {% else %}
+ <td></td>
{% endif %}
{% with staging=pkg.staging %}
<td>{% if staging %}{% pkg_details_link staging staging.full_version %}{% endif %}</td>