path: root/packages
diff options
authorDan McGee <>2012-12-27 23:56:34 -0600
committerDan McGee <>2012-12-28 00:33:03 -0600
commit6667b017669ffbae98ce70f5472f107b91da36d5 (patch)
tree0698eb47ef68f046f2fa5edfecd09a33f6e6c801 /packages
parentb801818eeed1068595cea863e9ae427f3931f925 (diff)
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 <>
Diffstat (limited to 'packages')
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/templatetags/ b/packages/templatetags/
index f3613e69..f14fab1e 100644
--- a/packages/templatetags/
+++ b/packages/templatetags/
@@ -63,7 +63,7 @@ def do_buildsortqs(parser, token):
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>'