From 946d90d08f29094153142056a1778cd595e568a3 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 23 Jul 2012 09:45:44 -0500 Subject: Add '410 Gone' support for packages moved out of repositories This allows us to do better than a generic 404 handler when we know a package previously existed in a given repository, and should also make things a bit nicer when getting sent in from a search engine to a page that no longer exists. Signed-off-by: Dan McGee --- templates/packages/removed.html | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 templates/packages/removed.html (limited to 'templates') diff --git a/templates/packages/removed.html b/templates/packages/removed.html new file mode 100644 index 0000000..17b1f98 --- /dev/null +++ b/templates/packages/removed.html @@ -0,0 +1,28 @@ +{% extends "base.html" %} +{% load url from future %} +{% load package_extras %} + +{% block title %}Arch Linux - Not Available - {{ update.pkgname }} {{ update.old_version }} ({{ update.arch.name }}){% endblock %} +{% block navbarclass %}anb-packages{% endblock %} + +{% block content %} +
+

{{ update.pkgname }} {{ update.old_version }} is no longer available

+ +

{{ update.pkgname }} {{ update.old_version }} has been removed from the [{{ update.repo.name|lower }}] repository.

+ + {% with update.elsewhere as elsewhere %}{% if elsewhere %} +

However, this package is available in other repositories:

+
    + {% for pkg in elsewhere %} +
  • {% pkg_details_link pkg %} {{ pkg.full_version }} [{{ pkg.repo.name|lower }}] ({{ pkg.arch.name }})
  • + {% endfor %} +
+ {% else %} +

Unfortunately, this package cannot be found in any other repositories. + Try using the package search page, + or try searching the AUR + to see if the package can be found there.

+ {% endif %}{% endwith %} +
+{% endblock %} -- cgit v1.2.3-24-g4f1b