summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorSergej Pupykin <sergej@home.sergej.pp.ru>2011-08-13 00:23:36 +0400
committerDan McGee <dan@archlinux.org>2011-08-16 15:02:04 -0500
commit0df3567ae25bb2856bc62951844d9dab5ea97990 (patch)
treec3696fc4dbb673906698a25d86e12785d7f1b271 /packages
parentf7626c05719ebb4362836d2ba7e1d297bd8a92a6 (diff)
add "search wiki" link to package details page
Dan: fix usage of urlencode() function. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages')
-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 7bc868de..e4c7a010 100644
--- a/packages/templatetags/package_extras.py
+++ b/packages/templatetags/package_extras.py
@@ -73,6 +73,14 @@ def svn_trunk(package):
return svn_link(package, "trunk")
@register.simple_tag
+def get_wiki_link(package):
+ data = {
+ 'search': package.pkgname,
+ }
+ return "https://wiki.archlinux.org/index.php/Special:Search?%s" % \
+ urlencode(data)
+
+@register.simple_tag
def bugs_list(package):
data = {
'project': package.repo.bugs_project,