Skip to content

Commit

Permalink
Only show tags if they are set
Browse files Browse the repository at this point in the history
  • Loading branch information
dcramer committed Oct 3, 2012
1 parent 592adc8 commit 88444b0
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/zumanji/templates/zumanji/includes/build_details.html
Expand Up @@ -11,10 +11,14 @@
<dd>{{ build.num_tests }}</dd>
<dt>Datetime</dt>
<dd>{{ build.datetime }}</dd>
<dt>Tags</dt>
<dd>
{% for tag in build.tags.all %}
<a href="{% url zumanji:view_tag project_label=build.project.label, tag_id=tag.id %}">{{ tag.label }}</a>{% if not forloop.last %}, {% endif %}
{% endfor %}
</dd>
{% with build.tags.all as tags %}
{% if tags %}
<dt>Tags</dt>
<dd>
{% for tag in tags %}
<a href="{% url zumanji:view_tag project_label=build.project.label, tag_id=tag.id %}">{{ tag.label }}</a>{% if not forloop.last %}, {% endif %}
{% endfor %}
</dd>
{% endif %}
{% endwith %}
</dl>

0 comments on commit 88444b0

Please sign in to comment.