summaryrefslogtreecommitdiff
path: root/templates/packages
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-04-12 16:47:30 -0500
committerDan McGee <dan@archlinux.org>2012-04-12 16:47:30 -0500
commitb4bf2a6ebb56b5e2f71eb1db960bc10e296ed6ad (patch)
treeac0bb1038859bc1005339cecde02b5220c14ac6a /templates/packages
parent3813ca597b3d76538f4d495e5eaf5b649e77adff (diff)
Show conflicts and replacements on package details page
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/packages')
-rw-r--r--templates/packages/details.html14
1 files changed, 13 insertions, 1 deletions
diff --git a/templates/packages/details.html b/templates/packages/details.html
index 5c08bf11..af67ca43 100644
--- a/templates/packages/details.html
+++ b/templates/packages/details.html
@@ -124,7 +124,19 @@
{% with pkg.provides.all as provides %}{% if provides %}
<tr>
<th>Provides:</th>
- <td>{% for p in provides %}{{ p.name }}{% if p.version %}={{ p.version }}{% endif %}<br/>{% endfor %}</td>
+ <td>{% for item in provides %}{{ item }}<br/>{% endfor %}</td>
+ </tr>
+ {% endif %}{% endwith %}
+ {% with pkg.conflicts.all as conflicts %}{% if conflicts %}
+ <tr>
+ <th>Conflicts:</th>
+ <td>{% for item in conflicts %}{{ item }}<br/>{% endfor %}</td>
+ </tr>
+ {% endif %}{% endwith %}
+ {% with pkg.replaces.all as replaces %}{% if replaces %}
+ <tr>
+ <th>Replaces:</th>
+ <td>{% for item in replaces %}{{ item }}<br/>{% endfor %}</td>
</tr>
{% endif %}{% endwith %}
<tr>