diff options
author | Dan McGee <dan@archlinux.org> | 2012-12-28 06:56:34 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-12-28 07:33:03 +0100 |
commit | 6667b017669ffbae98ce70f5472f107b91da36d5 (patch) | |
tree | 0698eb47ef68f046f2fa5edfecd09a33f6e6c801 | |
parent | b801818eeed1068595cea863e9ae427f3931f925 (diff) | |
download | archweb-6667b017669ffbae98ce70f5472f107b91da36d5.tar.gz archweb-6667b017669ffbae98ce70f5472f107b91da36d5.tar.xz |
Allow pkg_details_link to return link title if package is missing
For todolist packages that have had their package removed, this will
allow the package name to continue to appear even after the linked
package has been deleted.
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r-- | packages/templatetags/package_extras.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/templatetags/package_extras.py b/packages/templatetags/package_extras.py index f3613e6..f14fab1 100644 --- a/packages/templatetags/package_extras.py +++ b/packages/templatetags/package_extras.py @@ -63,7 +63,7 @@ def do_buildsortqs(parser, token): @register.simple_tag def pkg_details_link(pkg, link_title=None): if not pkg: - return '' + return link_title or '' if link_title is None: link_title = pkg.pkgname link = '<a href="%s" title="View package details for %s">%s</a>' |