summaryrefslogtreecommitdiff
path: root/packages/templatetags/package_extras.py
diff options
context:
space:
mode:
Diffstat (limited to 'packages/templatetags/package_extras.py')
-rw-r--r--packages/templatetags/package_extras.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/templatetags/package_extras.py b/packages/templatetags/package_extras.py
index afa29a7b..d4d0ca1a 100644
--- a/packages/templatetags/package_extras.py
+++ b/packages/templatetags/package_extras.py
@@ -64,4 +64,15 @@ def bug_report(package):
'title': '[%s]' % package.pkgname,
}
return "https://bugs.parabolagnulinux.org/bugs/issue?%s" % urlencode(data)
+
+@register.simple_tag
+def flag_unfree(package):
+ 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 "https://bugs.parabolagnulinux.org/bugs/issue?%s" % urlencode(data)
# vim: set ts=4 sw=4 et: