From a52c2744bf3b532f3f02ce45ae9d902706f9f518 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 17 Aug 2011 16:16:32 -0500 Subject: Add capfirst filter to yesno usage in templates Signed-off-by: Dan McGee --- templates/mirrors/mirror_details.html | 10 +++++----- templates/mirrors/mirrors.html | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'templates/mirrors') diff --git a/templates/mirrors/mirror_details.html b/templates/mirrors/mirror_details.html index 1795d0f..3daf1a2 100644 --- a/templates/mirrors/mirror_details.html +++ b/templates/mirrors/mirror_details.html @@ -24,16 +24,16 @@ Has ISOs: - {{ mirror.isos|yesno }} + {{ mirror.isos|yesno|capfirst }} {% if user.is_authenticated %} Public: - {{ mirror.public|yesno }} + {{ mirror.public|yesno|capfirst }} Active: - {{ mirror.active|yesno }} + {{ mirror.active|yesno|capfirst }} Rsync IPs: @@ -91,8 +91,8 @@ {% for m_url in urls %} {% if m_url.protocol.is_download %}{{ m_url.url }}{% else %}{{ m_url.url }}{% endif %} - {{ m_url.has_ipv4|yesno }} - {{ m_url.has_ipv6|yesno }} + {{ m_url.has_ipv4|yesno|capfirst }} + {{ m_url.has_ipv6|yesno|capfirst }} {{ m_url.last_sync|date:'Y-m-d H:i'|default:'unknown' }} {{ m_url.completion_pct|percentage:1 }} {{ m_url.delay|duration|default:'unknown' }} diff --git a/templates/mirrors/mirrors.html b/templates/mirrors/mirrors.html index ee76acb..bf35608 100644 --- a/templates/mirrors/mirrors.html +++ b/templates/mirrors/mirrors.html @@ -27,11 +27,11 @@ title="Mirror details for {{ mirror.name }}">{{ mirror.name }} {{mirror.get_tier_display}} {{mirror.country}} - {{mirror.isos|yesno}} + {{mirror.isos|yesno|capfirst}} {{mirror.supported_protocols|join:", "}} {% if user.is_authenticated %} - {{mirror.public|yesno}} - {{mirror.active|yesno}} + {{mirror.public|yesno|capfirst}} + {{mirror.active|yesno|capfirst}} {{mirror.admin_email}} {{mirror.notes|linebreaks}} {% endif %} -- cgit v1.2.3-24-g4f1b