summaryrefslogtreecommitdiffstats
path: root/templates/packages/removed.html
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-08-01 02:31:44 +0200
committerDan McGee <dan@archlinux.org>2012-08-01 02:31:44 +0200
commit5f85a1240da14e57760c2ba6585ae943d7a1d8c2 (patch)
treeb15a473edcc0db3f9cb3943ad9802e1ff1e8f692 /templates/packages/removed.html
parent5f410c000eaca4b5b25664f4dfb59cbe85ea034e (diff)
downloadarchweb-5f85a1240da14e57760c2ba6585ae943d7a1d8c2.tar.gz
archweb-5f85a1240da14e57760c2ba6585ae943d7a1d8c2.tar.xz
Reuse removed template for packages with multiple replacements
For example, bitcoin-git in the Arch repos is currently marked replaced by both bitcoin-qt and bitcoin-daemon. This allows us to show a page with both options listed instead of a blank 404 page. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/packages/removed.html')
-rw-r--r--templates/packages/removed.html12
1 files changed, 6 insertions, 6 deletions
diff --git a/templates/packages/removed.html b/templates/packages/removed.html
index 17b1f98..ea20ce8 100644
--- a/templates/packages/removed.html
+++ b/templates/packages/removed.html
@@ -2,17 +2,17 @@
{% load url from future %}
{% load package_extras %}
-{% block title %}Arch Linux - Not Available - {{ update.pkgname }} {{ update.old_version }} ({{ update.arch.name }}){% endblock %}
+{% block title %}Arch Linux - Not Available - {{ name }} {{ version }} ({{ arch.name }}){% endblock %}
{% block navbarclass %}anb-packages{% endblock %}
{% block content %}
<div id="pkg-gone" class="box">
- <h2>{{ update.pkgname }} {{ update.old_version }} is no longer available</h2>
+ <h2>{{ name }} {{ version }} is no longer available</h2>
- <p>{{ update.pkgname }} {{ update.old_version }} has been removed from the [{{ update.repo.name|lower }}] repository.</p>
+ <p>{{ name }} {{ version }} has been removed from the [{{ repo.name|lower }}] repository.</p>
- {% with update.elsewhere as elsewhere %}{% if elsewhere %}
- <p>However, this package is available in other repositories:</p>
+ {% if elsewhere %}
+ <p>However, this package or replacements are available elsewhere:</p>
<ul>
{% for pkg in elsewhere %}
<li>{% pkg_details_link pkg %} {{ pkg.full_version }} [{{ pkg.repo.name|lower }}] ({{ pkg.arch.name }})</li>
@@ -23,6 +23,6 @@
Try using the <a href="{% url 'packages-search' %}?name={{ update.pkgname|urlencode }}">package search page</a>,
or try <a href="https://aur.archlinux.org/packages.php?K={{ update.pkgname|urlencode }}">searching the AUR</a>
to see if the package can be found there.</p>
- {% endif %}{% endwith %}
+ {% endif %}
</div>
{% endblock %}