From d993e1f1a85973d759dd2eb4b1418c583fbbafa1 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 4 Aug 2010 07:00:41 -0500 Subject: Add a title to the userpkgs link Signed-off-by: Dan McGee --- packages/templatetags/package_extras.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'packages') diff --git a/packages/templatetags/package_extras.py b/packages/templatetags/package_extras.py index 66ba31a7..3cd2b91b 100644 --- a/packages/templatetags/package_extras.py +++ b/packages/templatetags/package_extras.py @@ -1,5 +1,6 @@ import cgi, urllib from django import template +from django.utils.html import escape register = template.Library() @@ -47,8 +48,12 @@ def render(self, context): try: real_user = self.user.resolve(context) # TODO don't hardcode - return '%s' % ( - real_user.username, real_user.get_full_name()) + title = escape('View packages maintained by ' + real_user.get_full_name()) + return '%s' % ( + real_user.username, + title, + real_user.get_full_name(), + ) except template.VariableDoesNotExist: return '' pass -- cgit v1.2.3-54-g00ecf