summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/templatetags/package_extras.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/packages/templatetags/package_extras.py b/packages/templatetags/package_extras.py
index 66ba31a..3cd2b91 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 @@ class UserPkgsNode(template.Node):
try:
real_user = self.user.resolve(context)
# TODO don't hardcode
- return '<a href="/packages/search/?maintainer=%s">%s</a>' % (
- real_user.username, real_user.get_full_name())
+ title = escape('View packages maintained by ' + real_user.get_full_name())
+ return '<a href="/packages/search/?maintainer=%s" title="%s">%s</a>' % (
+ real_user.username,
+ title,
+ real_user.get_full_name(),
+ )
except template.VariableDoesNotExist:
return ''
pass