Use commas rather than line breaks for multivalued details items

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2012-04-12 16:54:01 -05:00
parent b4bf2a6ebb
commit 1fabb8023a

View File

@ -86,7 +86,7 @@ <h4>Versions Elsewhere</h4>
{% with pkg.split_packages as splits %}{% if splits %} {% with pkg.split_packages as splits %}{% if splits %}
<tr> <tr>
<th>Split Packages:</th> <th>Split Packages:</th>
<td>{% for s in splits %}{% pkg_details_link s %}<br/>{% endfor %}</td> <td class="wrap">{% for s in splits %}{% pkg_details_link s %}{% if not forloop.last %}, {% endif %}{% endfor %}</td>
</tr> </tr>
{% endif %}{% endwith %} {% endif %}{% endwith %}
{% else %} {% else %}
@ -109,34 +109,33 @@ <h4>Versions Elsewhere</h4>
title="Visit the website for {{ pkg.pkgname }}">{{ pkg.url|url_unquote }}</a>{% endif %}</td> title="Visit the website for {{ pkg.pkgname }}">{{ pkg.url|url_unquote }}</a>{% endif %}</td>
</tr><tr> </tr><tr>
<th>License(s):</th> <th>License(s):</th>
<td>{{ pkg.licenses.all|join:", " }}</td> <td class="wrap">{{ pkg.licenses.all|join:", " }}</td>
</tr> </tr>
{% with pkg.groups.all as groups %}{% if groups %} {% with pkg.groups.all as groups %}{% if groups %}
<tr> <tr>
<th>Groups:</th> <th>Groups:</th>
<td>{% for g in groups %} <td class="wrap">{% for g in groups %}
<a href="/groups/{{ pkg.arch.name }}/{{ g.name }}/" <a href="/groups/{{ pkg.arch.name }}/{{ g.name }}/"
title="Group details for {{ g.name }}">{{ g.name }}</a><br/> title="Group details for {{ g.name }}">{{ g.name }}</a>{% if not forloop.last %}, {% endif %}{% endfor %}
{% endfor %}
</td> </td>
</tr> </tr>
{% endif %}{% endwith %} {% endif %}{% endwith %}
{% with pkg.provides.all as provides %}{% if provides %} {% with pkg.provides.all as provides %}{% if provides %}
<tr> <tr>
<th>Provides:</th> <th>Provides:</th>
<td>{% for item in provides %}{{ item }}<br/>{% endfor %}</td> <td class="wrap">{{ provides|join:", " }}</td>
</tr> </tr>
{% endif %}{% endwith %} {% endif %}{% endwith %}
{% with pkg.conflicts.all as conflicts %}{% if conflicts %} {% with pkg.conflicts.all as conflicts %}{% if conflicts %}
<tr> <tr>
<th>Conflicts:</th> <th>Conflicts:</th>
<td>{% for item in conflicts %}{{ item }}<br/>{% endfor %}</td> <td class="wrap">{{ conflicts|join:", " }}</td>
</tr> </tr>
{% endif %}{% endwith %} {% endif %}{% endwith %}
{% with pkg.replaces.all as replaces %}{% if replaces %} {% with pkg.replaces.all as replaces %}{% if replaces %}
<tr> <tr>
<th>Replaces:</th> <th>Replaces:</th>
<td>{% for item in replaces %}{{ item }}<br/>{% endfor %}</td> <td class="wrap">{{ replaces|join:", " }}</td>
</tr> </tr>
{% endif %}{% endwith %} {% endif %}{% endwith %}
<tr> <tr>