summaryrefslogtreecommitdiffstats
path: root/templates/packages
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-08-07 08:16:51 +0200
committerDan McGee <dan@archlinux.org>2012-08-07 08:16:53 +0200
commit7d9ed0b881bd05878e7a54f785c2551bc6e336d6 (patch)
tree790658dc0f8e253b15be626ab9d121c4f306e7c7 /templates/packages
parent8ca64af397718f7dda0080467d202c6a70a33c8c (diff)
downloadarchweb-7d9ed0b881bd05878e7a54f785c2551bc6e336d6.tar.gz
archweb-7d9ed0b881bd05878e7a54f785c2551bc6e336d6.tar.xz
Add reverse conflicts to package details
This is a place where calling vercmp could come in really handy. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/packages')
-rw-r--r--templates/packages/details.html13
1 files changed, 10 insertions, 3 deletions
diff --git a/templates/packages/details.html b/templates/packages/details.html
index 201e307..9e898b7 100644
--- a/templates/packages/details.html
+++ b/templates/packages/details.html
@@ -126,16 +126,23 @@
<td class="wrap">{% include "packages/details_relatedto.html" %}</td>
</tr>
{% endif %}{% endwith %}
+ {% with pkg.replaces.all as all_related %}{% if all_related %}
+ <tr>
+ <th>Replaces:</th>
+ <td class="wrap">{% include "packages/details_relatedto.html" %}</td>
+ </tr>
+ {% endif %}{% endwith %}
{% with pkg.conflicts.all as all_related %}{% if all_related %}
<tr>
<th>Conflicts:</th>
<td class="wrap">{% include "packages/details_relatedto.html" %}</td>
</tr>
{% endif %}{% endwith %}
- {% with pkg.replaces.all as all_related %}{% if all_related %}
+ {% with pkg.reverse_conflicts as rev_conflicts %}{% if rev_conflicts %}
<tr>
- <th>Replaces:</th>
- <td class="wrap">{% include "packages/details_relatedto.html" %}</td>
+ <th>Reverse Conflicts:</th>
+ <td class="wrap">{% for conflict in rev_conflicts %}
+ {% pkg_details_link conflict %}{% if not forloop.last %}, {% endif %}{% endfor %}</td>
</tr>
{% endif %}{% endwith %}
<tr>