summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2011-05-21 02:28:51 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2011-05-21 02:28:51 -0300
commit5897fba6d3242cc7188d05f8f3be7362a8383761 (patch)
tree84ccff2220113bff8b38120d04fa4d39f7c1e1fb /packages
parenta30350ac6e76c66d14f6d78ed2b5ae4e5799c79c (diff)
More rebranding!
Diffstat (limited to 'packages')
-rw-r--r--packages/templatetags/package_extras.py31
1 files changed, 7 insertions, 24 deletions
diff --git a/packages/templatetags/package_extras.py b/packages/templatetags/package_extras.py
index e089b723..77ba79ba 100644
--- a/packages/templatetags/package_extras.py
+++ b/packages/templatetags/package_extras.py
@@ -48,37 +48,20 @@ def userpkgs(user):
)
return ''
-
-def svn_link(package, svnpath):
- '''Helper function for the two real SVN link methods.'''
- parts = (package.repo.svn_root, package.pkgbase, svnpath)
- linkbase = "http://projects.archlinux.org/svntogit/%s.git/tree/%s/%s/"
- return linkbase % tuple(urlquote(part) for part in parts)
-
-@register.simple_tag
-def svn_arch(package):
- repo = package.repo.name.lower()
- return svn_link(package, "repos/%s-%s" % (repo, package.arch.name))
-
-@register.simple_tag
-def svn_trunk(package):
- return svn_link(package, "trunk")
-
@register.simple_tag
def bugs_list(package):
data = {
- 'project': package.repo.bugs_project,
- 'string': package.pkgname,
+ '@action': 'search'
+ 'title': package.pkgname,
}
- return "https://bugs.archlinux.org/?%s" % urlencode(data)
+ return "https://bugs.parabolagnulinux.org/bugs/issue?%s" % urlencode(data)
@register.simple_tag
def bug_report(package):
data = {
- 'project': package.repo.bugs_project,
- 'product_category': package.repo.bugs_category,
- 'item_summary': '[%s]' % package.pkgname,
+ '@template': 'item',
+ 'keyword': 'packages',
+ 'title': '[%s]' % package.pkgname,
}
- return "https://bugs.archlinux.org/newtask?%s" % urlencode(data)
-
+ return "https://bugs.parabolagnulinux.org/bugs/issue?" % urlencode(data)
# vim: set ts=4 sw=4 et: