diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2013-08-26 17:02:35 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2013-08-26 17:02:35 -0500 |
commit | a3a2078b1b70daa465cdab1832f722ce67d2ed56 (patch) | |
tree | 326cbd81bdc4b3b0ff3682793f87a15213ea1658 /packages | |
parent | 46b9cd7b02add71968c16e5210b175d02c0aacef (diff) |
Fix links related to issue #369
Diffstat (limited to 'packages')
-rw-r--r-- | packages/templatetags/package_extras.py | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/packages/templatetags/package_extras.py b/packages/templatetags/package_extras.py index 191b9920..20c127c1 100644 --- a/packages/templatetags/package_extras.py +++ b/packages/templatetags/package_extras.py @@ -126,7 +126,11 @@ def get_wiki_link(package): @register.simple_tag def bugs_list(package): - url = "https://labs.parabola.nu/search/index/issue-tracker" + url = "https://labs.parabola.nu/search/index/" + if package.arch.name == 'mips64el': + url = url + "mips64el" + else: + url = url + "issue-tracker" data = { 'titles_only': '1', 'issues': '1', @@ -137,7 +141,11 @@ def bugs_list(package): @register.simple_tag def bug_report(package): - url = "https://labs.parabola.nu/projects/issue-tracker/issues/new" + url = "https://labs.parabola.nu/projects/" + if package.arch.name == 'mips64el': + url = url + "mips64el/issues/new" + else: + url = url + "issue-tracker/issues/new" data = { 'issue[subject]': '[%s] PLEASE ENTER SUMMARY' % package.pkgname, } @@ -145,7 +153,11 @@ def bug_report(package): @register.simple_tag def flag_unfree(package): - url = "https://labs.parabola.nu/projects/issue-tracker/issues/new" + url = "https://labs.parabola.nu/projects/" + if package.arch.name == 'mips64el': + url = url + "mips64el/issues/new" + else: + url = url + "issue-tracker/issues/new" data = { 'issue[priority_id]': '1', # "freedom issue" 'issue[watcher_user_ids][]': '62', # "dev-list" |