Merge "Useing 'yesno' filter to display Boolean value"

This commit is contained in:
Jenkins 2015-07-01 02:24:56 +00:00 committed by Gerrit Code Review
commit 9f563c498d
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@
<dt>{% trans "Project ID" %}</dt>
<dd>{{ project.id }}</dd>
<dt>{% trans "Enabled" %}</dt>
<dd>{{ project.enabled }}</dd>
<dd>{{ project.enabled|yesno|capfirst }}</dd>
<dt>{% trans "Description" %}</dt>
<dd>{{ project.description|default:_("None") }}</dd>
</dl>

View File

@ -21,7 +21,7 @@
<dt>{% trans "Email" %}</dt>
<dd>{{ user.email|default:_("None") }}</dd>
<dt>{% trans "Enabled" %}</dt>
<dd>{{ user.enabled }}</dd>
<dd>{{ user.enabled|yesno|capfirst }}</dd>
<dt>{% trans "Project ID" %}</dt>
<dd>{{ user.project_id }}</dd>
</dl>