summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/templatetags/package_extras.py35
-rw-r--r--packages/views.py2
2 files changed, 20 insertions, 17 deletions
diff --git a/packages/templatetags/package_extras.py b/packages/templatetags/package_extras.py
index 01bf7510..45a534c8 100644
--- a/packages/templatetags/package_extras.py
+++ b/packages/templatetags/package_extras.py
@@ -62,16 +62,8 @@ def userpkgs(user):
return ''
@register.simple_tag
-def scm_link(package, operation):
- parts = (package.repo.svn_root, operation, package.pkgbase)
- linkbase = (
- "http://projects.archlinux.org/svntogit/%s.git/%s/trunk?"
- "h=packages/%s")
- return linkbase % tuple(urlquote(part) for part in parts)
-
-@register.simple_tag
def get_wiki_link(package):
- url = "https://wiki.archlinux.org/index.php/Special:Search"
+ url = "http://wiki.parabolagnulinux.org/Special:Search"
data = {
'search': package.pkgname,
}
@@ -79,21 +71,32 @@ def get_wiki_link(package):
@register.simple_tag
def bugs_list(package):
- url = "https://bugs.archlinux.org/"
+ url = "https://bugs.parabolagnulinux.org/bugs/issue"
data = {
- 'project': package.repo.bugs_project,
- 'string': package.pkgname,
+ '@action': 'search',
+ 'title': package.pkgname,
}
return link_encode(url, data)
@register.simple_tag
def bug_report(package):
- url = "https://bugs.archlinux.org/newtask"
+ url = "https://bugs.parabolagnulinux.org/bugs/issue"
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 link_encode(url, data)
+@register.simple_tag
+def flag_unfree(package):
+ url = "https://bugs.parabolagnulinux.org/bugs/issue"
+ 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,
+ }
+ return link_encode(url, data)
# vim: set ts=4 sw=4 et:
diff --git a/packages/views.py b/packages/views.py
index 8c9c1b18..f45c25d6 100644
--- a/packages/views.py
+++ b/packages/views.py
@@ -516,7 +516,7 @@ def flag(request, name, repo, arch):
})
send_mail(subject,
t.render(c),
- 'Arch Website Notification <nobody@archlinux.org>',
+ 'Parabola Packages <packages@list.parabolagnulinux.org>',
toemail,
fail_silently=True)