summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-12-01 01:13:31 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-12-01 01:13:31 -0500
commit3eb75b1670fd5f5b581ac9c0d2b1343d205118a8 (patch)
tree5fd372cda940d03a1a3488ea9e82126cc0c246fd
parent56f60fcfbe1cd2951dd1867360ae364213686b5f (diff)
add get_wiki_link() to packages/templatetags/package_extras.py (fix the 500 error)
-rw-r--r--packages/templatetags/package_extras.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/templatetags/package_extras.py b/packages/templatetags/package_extras.py
index 827f6438..01d9afd6 100644
--- a/packages/templatetags/package_extras.py
+++ b/packages/templatetags/package_extras.py
@@ -72,6 +72,14 @@ def userpkgs(user):
)
return ''
+@register.simple_tag
+def get_wiki_link(package):
+ url = "https://wiki.parabolagnulinux.org/index.php"
+ data = {
+ 'title': "Special:Search",
+ 'search': package.pkgname,
+ }
+ return link_encode(url, data)
@register.simple_tag
def svn_arch(package):