diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-10-10 18:29:23 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-10-22 15:00:46 +0100 |
commit | 8d03691a077a3cb34a157fadf357530d089131c2 (patch) | |
tree | 54cfe10c5ebd8e3f194e0ffdc92486a7071aae4e /templates | |
parent | b5f57d1649b7dee104e29e8c5055a09e1de06b70 (diff) |
Use Chains in /report.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/web/base/report/_support.html | 4 | ||||
-rw-r--r-- | templates/web/base/report/display_tools.html | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/templates/web/base/report/_support.html b/templates/web/base/report/_support.html index 3e372ba69..420b632aa 100644 --- a/templates/web/base/report/_support.html +++ b/templates/web/base/report/_support.html @@ -8,8 +8,8 @@ %] [% IF c.user AND c.user.from_body %] - <form action="[% c.uri_for( '/report/support' ) %]"> - <p id="supporter"><small>[% text %] <input type="hidden" name="id" value="[% problem.id %]"><input type="submit" class="green-btn" value="Add support"></small></p> + <form action="/report/[% problem.id %]/support"> + <p id="supporter"><small>[% text %] <input type="submit" class="green-btn" value="Add support"></small></p> </form> [% ELSE %] <p id="supporter"><small>[% text %]</small></p> diff --git a/templates/web/base/report/display_tools.html b/templates/web/base/report/display_tools.html index eaf45fdf3..be788a50d 100644 --- a/templates/web/base/report/display_tools.html +++ b/templates/web/base/report/display_tools.html @@ -1,7 +1,7 @@ <div class="shadow-wrap"> <ul id="key-tools"> [% IF c.user_exists AND c.cobrand.users_can_hide AND c.user.belongs_to_body( problem.bodies_str ) %] - <li><form method="post" action="/report/delete/[% problem.id %]" id="remove-from-site-form"> + <li><form method="post" action="/report/[% problem.id %]/delete" id="remove-from-site-form"> <input type="hidden" name="token" value="[% csrf_token %]"> <button type="submit" id="key-tool-report-abuse" class="abuse" data-confirm="[% loc('Are you sure?') %]" name="remove_from_site">[% loc('Remove from site') %]</button> </form></li> |