diff options
author | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2011-06-03 21:08:08 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2011-06-03 21:08:08 -0300 |
commit | 7dd2c8ea0a0264b86c49f3168dcb41a4337ccc73 (patch) | |
tree | e5b2e6e5e599045c9d3e0fce7f8d4bbfe33a9cfa | |
parent | 3b23b4424f2bc105cbe1b92394e3b925c53f9a61 (diff) |
Closed bug #16
-rw-r--r-- | packages/templatetags/package_extras.py | 11 | ||||
-rw-r--r-- | templates/packages/details.html | 1 |
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 %} |