summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/templatetags/package_extras.py11
-rw-r--r--templates/packages/details.html1
2 files changed, 12 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:
diff --git a/templates/packages/details.html b/templates/packages/details.html
index 5b6d4166..d1e6eee9 100644
--- a/templates/packages/details.html
+++ b/templates/packages/details.html
@@ -17,6 +17,7 @@
<ul class="small">
<li><a href="{% bugs_list pkg %}" title="View existing bug tickets for {{ pkg.pkgname }}">Bug Reports</a></li>
<li><a href="{% bug_report pkg %}" title="Report bug for {{ pkg.pkgname }}">Report a Bug</a></li>
+ <li><a href="{% flag_unfree pkg %}" title="Report {{ pkg.pkgname }} as unfree">Report as unfree</a></li>
{% if pkg.flag_date %}
<li><span class="flagged">Flagged out-of-date on {{ pkg.flag_date|date }}</span></li>
{% with pkg.in_testing as tp %}{% if tp %}