summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2014-10-18 15:36:56 -0500
committerDan McGee <dan@archlinux.org>2014-10-18 15:36:56 -0500
commit122302e9e5fb9752a942abe5691ad3dd6d186196 (patch)
tree7b7ac68ef68d52808b9d48b0eddf88c89612d00a /packages
parente5e5632fb3432e153d0677b4bf145bc2eb72ef65 (diff)
Move maintainer/packager link code back into template
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages')
-rw-r--r--packages/templatetags/jinja2.py26
1 files changed, 0 insertions, 26 deletions
diff --git a/packages/templatetags/jinja2.py b/packages/templatetags/jinja2.py
index 263fc156..22f9914b 100644
--- a/packages/templatetags/jinja2.py
+++ b/packages/templatetags/jinja2.py
@@ -25,32 +25,6 @@ def link_encode(url, query):
@library.global_function
-def maintainer_link(user):
- if user:
- # TODO don't hardcode
- title = escape('View packages maintained by ' + user.get_full_name())
- return '<a href="/packages/?maintainer=%s" title="%s">%s</a>' % (
- user.username,
- title,
- user.get_full_name(),
- )
- return ''
-
-
-@library.global_function
-def packager_link(user):
- if user:
- # TODO don't hardcode
- title = escape('View packages packaged by ' + user.get_full_name())
- return '<a href="/packages/?packager=%s" title="%s">%s</a>' % (
- user.username,
- title,
- user.get_full_name(),
- )
- return ''
-
-
-@library.global_function
def pgp_key_link(key_id, link_text=None):
return pgp.pgp_key_link(key_id, link_text)