summaryrefslogtreecommitdiffstats
path: root/templates/isotests/result_section.html
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-04-29 00:44:43 +0200
committerDan McGee <dan@archlinux.org>2011-04-29 00:53:22 +0200
commit1ff9c0fc5db1aab393eed5751e94ed8ac127c0c2 (patch)
tree97ae7328cb2b47593f3cc872ac9aa945e9aa1528 /templates/isotests/result_section.html
parent684fb5353d0e61075c7a24f703b680d58e8dcf00 (diff)
downloadarchweb-1ff9c0fc5db1aab393eed5751e94ed8ac127c0c2.tar.gz
archweb-1ff9c0fc5db1aab393eed5751e94ed8ac127c0c2.tar.xz
isotests: massive overview refactor
Copy pasted code sucks. Fix it. Also, ensure 500 errors aren't going to be popping up when people start typing invalid URLs for fun, among a lot of other small fixes going in here. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/isotests/result_section.html')
-rw-r--r--templates/isotests/result_section.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/templates/isotests/result_section.html b/templates/isotests/result_section.html
new file mode 100644
index 0000000..52f0333
--- /dev/null
+++ b/templates/isotests/result_section.html
@@ -0,0 +1,26 @@
+<tr>
+ <td><h3>{% if option.is_rollback %}Rollback: {% endif %}{{ option.name|title }}</h3></td>
+</tr>
+{% for item in option.values %}
+<tr>
+ <td>
+ <a href="{% url releng-results-for option.name|lower item.value.pk %}">
+ {{ item.value.name|lower }}
+ </a>
+ </td>
+ <td>
+ {% if item.success %}
+ <a href="{% url releng-results-iso item.success.pk %}">
+ {{ item.success.name }}
+ </a>
+ {% else %}Never succeeded{% endif %}
+ </td>
+ <td>
+ {% if item.failure %}
+ <a href="{% url releng-results-iso item.failure.pk %}">
+ {{ item.failure.name }}
+ </a>
+ {% else %}Never failed{% endif %}
+ </td>
+</tr>
+{% endfor %}