summaryrefslogtreecommitdiff
path: root/packages/templatetags
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-04-21 21:03:02 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-04-21 21:03:02 -0400
commitd8d22193ee9f06e9b18cb69b2e78cbe1e527bd83 (patch)
tree7493ed962225178a2e7d78cbceabbe2df83db6e2 /packages/templatetags
parent294db8d3b87c2d75c60e0b8b69a07496a92e36b2 (diff)
update packages/templatetags/package_extras.py for labs
Diffstat (limited to 'packages/templatetags')
-rw-r--r--packages/templatetags/package_extras.py30
1 files changed, 14 insertions, 16 deletions
diff --git a/packages/templatetags/package_extras.py b/packages/templatetags/package_extras.py
index 2e68ef0c..2d51fd40 100644
--- a/packages/templatetags/package_extras.py
+++ b/packages/templatetags/package_extras.py
@@ -85,7 +85,7 @@ def get_download_link(package):
}
if parts["arch"] == "any":
parts["arch"] = "i686"
- linkbase = "//repo.parabolagnulinux.org/%(repo)s/os/%(arch)s/%(pkgfile)s"
+ linkbase = "https//repo.parabolagnulinux.org/%(repo)s/os/%(arch)s/%(pkgfile)s"
return linkbase % parts
@register.simple_tag
@@ -102,7 +102,7 @@ def packager_link(user):
@register.simple_tag
def get_wiki_link(package):
- url = "//wiki.parabolagnulinux.org/index.php"
+ url = "https://wiki.parabolagnulinux.org/index.php"
data = {
'title': "Special:Search",
'search': package.pkgname,
@@ -120,32 +120,30 @@ def svn_trunk(package):
@register.simple_tag
def bugs_list(package):
- url = "//bugs.parabolagnulinux.org/bugs/issue"
+ url = "https://labs.parabola.nu/search/index/issue-tracker"
data = {
- '@action': 'search',
- 'title': package.pkgname,
+ 'titles_only': '1',
+ 'issues': '1',
+ 'q': package.pkgname,
}
return link_encode(url, data)
@register.simple_tag
def bug_report(package):
- url = "//bugs.parabolagnulinux.org/bugs/issue"
+ url = "https://labs.parabola.nu/projects/issue-tracker/issues/new"
data = {
- '@template': 'item',
- 'keyword': 'packages',
- 'title': '[%s] PLEASE ENTER SUMMARY' % package.pkgname,
+ 'issue[subject]': '[%s] PLEASE ENTER SUMMARY' % package.pkgname,
}
return link_encode(url, data)
@register.simple_tag
def flag_unfree(package):
- url = "//bugs.parabolagnulinux.org/bugs/issue"
+ url = "https://labs.parabola.nu/projects/issue-tracker/issues/new"
data = {
- '@template': 'item',
- 'keyword': 'packages,unfree',
- 'nosy': 'dev_list',
- 'priority': 'critical',
- 'title': '[%s] Please put your reasons here (register first if you haven\'t)' % package.pkgname,
+ 'issue[priority_id]': '1', # "freedom issue"
+ 'issue[watcher_user_ids][]': '62', # "dev-list"
+ 'issue[subject]': '[%s] Please put your reasons here (register first if you haven\'t)' % package.pkgname,
}
- return "//bugs.parabolagnulinux.org/bugs/issue?%s" % urlencode(data)
+ return link_encode(url, data)
+
# vim: set ts=4 sw=4 et: