summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-08-17 16:16:32 -0500
committerDan McGee <dan@archlinux.org>2011-08-17 16:16:32 -0500
commita52c2744bf3b532f3f02ce45ae9d902706f9f518 (patch)
treec540955f6f7b7decf9828ec1fadc1b7fc5b428b2
parent366e438ed5b6b9f2fc2651e64e3e41444fb781fb (diff)
Add capfirst filter to yesno usage in templates
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--templates/mirrors/mirror_details.html10
-rw-r--r--templates/mirrors/mirrors.html6
-rw-r--r--templates/packages/signoffs.html4
-rw-r--r--templates/releng/iso_overview.html12
-rw-r--r--templates/releng/result_list.html2
5 files changed, 14 insertions, 20 deletions
diff --git a/templates/mirrors/mirror_details.html b/templates/mirrors/mirror_details.html
index 1795d0f5..3daf1a2d 100644
--- a/templates/mirrors/mirror_details.html
+++ b/templates/mirrors/mirror_details.html
@@ -24,16 +24,16 @@
</tr>
<tr>
<th>Has ISOs:</th>
- <td>{{ mirror.isos|yesno }}</td>
+ <td>{{ mirror.isos|yesno|capfirst }}</td>
</tr>
{% if user.is_authenticated %}
<tr>
<th>Public:</th>
- <td>{{ mirror.public|yesno }}</td>
+ <td>{{ mirror.public|yesno|capfirst }}</td>
</tr>
<tr>
<th>Active:</th>
- <td>{{ mirror.active|yesno }}</td>
+ <td>{{ mirror.active|yesno|capfirst }}</td>
</tr>
<tr>
<th>Rsync IPs:</th>
@@ -91,8 +91,8 @@
{% for m_url in urls %}
<tr class="{% cycle 'odd' 'even' %}">
<td>{% if m_url.protocol.is_download %}<a href="{{ m_url.url }}">{{ m_url.url }}</a>{% else %}{{ m_url.url }}{% endif %}</td>
- <td>{{ m_url.has_ipv4|yesno }}</td>
- <td>{{ m_url.has_ipv6|yesno }}</td>
+ <td>{{ m_url.has_ipv4|yesno|capfirst }}</td>
+ <td>{{ m_url.has_ipv6|yesno|capfirst }}</td>
<td>{{ m_url.last_sync|date:'Y-m-d H:i'|default:'unknown' }}</td>
<td>{{ m_url.completion_pct|percentage:1 }}</td>
<td>{{ m_url.delay|duration|default:'unknown' }}</td>
diff --git a/templates/mirrors/mirrors.html b/templates/mirrors/mirrors.html
index ee76acbe..bf356080 100644
--- a/templates/mirrors/mirrors.html
+++ b/templates/mirrors/mirrors.html
@@ -27,11 +27,11 @@
title="Mirror details for {{ mirror.name }}">{{ mirror.name }}</a></td>
<td>{{mirror.get_tier_display}}</td>
<td>{{mirror.country}}</td>
- <td>{{mirror.isos|yesno}}</td>
+ <td>{{mirror.isos|yesno|capfirst}}</td>
<td class="wrap">{{mirror.supported_protocols|join:", "}}</td>
{% if user.is_authenticated %}
- <td>{{mirror.public|yesno}}</td>
- <td>{{mirror.active|yesno}}</td>
+ <td>{{mirror.public|yesno|capfirst}}</td>
+ <td>{{mirror.active|yesno|capfirst}}</td>
<td>{{mirror.admin_email}}</td>
<td class="wrap">{{mirror.notes|linebreaks}}</td>
{% endif %}
diff --git a/templates/packages/signoffs.html b/templates/packages/signoffs.html
index baf85338..a8aa4de2 100644
--- a/templates/packages/signoffs.html
+++ b/templates/packages/signoffs.html
@@ -35,8 +35,8 @@
<td>{{ pkg.full_version }}</td>
<td>{{ pkg.last_update|date }}</td>
<td>{{ group.target_repo }}</td>
- <td class="signoff-{{group.approved|yesno}}">
- {{ group.approved|yesno:"Yes,No" }}</td>
+ <td class="signoff-{{ group.approved|yesno }}">
+ {{ group.approved|yesno|capfirst }}</td>
<td>
<ul>
<li><a class="signoff-link" href="{{ pkg.get_absolute_url }}signoff/"
diff --git a/templates/releng/iso_overview.html b/templates/releng/iso_overview.html
index 054e0fa7..8280f100 100644
--- a/templates/releng/iso_overview.html
+++ b/templates/releng/iso_overview.html
@@ -21,15 +21,9 @@
<td>
<a href="{{ iso.get_absolute_url }}">{{ iso.name }}</a>
</td>
- <td>
- {{ iso.active|yesno }}
- </td>
- <td>
- {{ iso.successes }}
- </td>
- <td>
- {{ iso.failures }}
- </td>
+ <td>{{ iso.active|yesno|capfirst }}</td>
+ <td>{{ iso.successes }}</td>
+ <td>{{ iso.failures }}</td>
</tr>
{% endfor %}
</tbody>
diff --git a/templates/releng/result_list.html b/templates/releng/result_list.html
index a343257e..7f9ed452 100644
--- a/templates/releng/result_list.html
+++ b/templates/releng/result_list.html
@@ -26,7 +26,7 @@
<td>{{ test.user_name }}</td>
<td>{{ test.created|date }}</td>
<td>{{ test.architecture }}</td>
- <td>{{ test.success|yesno }}</td>
+ <td>{{ test.success|yesno|capfirst }}</td>
</tr>
{% endfor %}
</tbody>