From 78b34d4543c1c3808851351a9f083789a99c72c9 Mon Sep 17 00:00:00 2001 From: Dave Arter Date: Wed, 21 Sep 2016 13:44:22 +0100 Subject: Some minor admin fixes - Superusers couldn't view response priorities due to invalid $c->forward call - Navigation to other areas of admin was broken on response priority admin pages --- perllib/FixMyStreet/App/Controller/Admin/ResponsePriorities.pm | 2 +- templates/web/base/admin/navigation.html | 2 +- templates/web/base/admin/responsepriorities/index.html | 2 +- templates/web/base/admin/responsepriorities/list.html | 2 +- templates/web/base/admin/templates.html | 2 +- templates/web/base/admin/templates_index.html | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/perllib/FixMyStreet/App/Controller/Admin/ResponsePriorities.pm b/perllib/FixMyStreet/App/Controller/Admin/ResponsePriorities.pm index f1110fbf0..ce17390d9 100644 --- a/perllib/FixMyStreet/App/Controller/Admin/ResponsePriorities.pm +++ b/perllib/FixMyStreet/App/Controller/Admin/ResponsePriorities.pm @@ -17,7 +17,7 @@ sub index : Path : Args(0) { my $user = $c->user; if ($user->is_superuser) { - $c->forward('fetch_all_bodies'); + $c->forward('/admin/fetch_all_bodies'); } elsif ( $user->from_body ) { $c->forward('load_user_body', [ $user->from_body->id ]); $c->res->redirect( $c->uri_for( '', $c->stash->{body}->id ) ); diff --git a/templates/web/base/admin/navigation.html b/templates/web/base/admin/navigation.html index 895589822..e021ba81b 100644 --- a/templates/web/base/admin/navigation.html +++ b/templates/web/base/admin/navigation.html @@ -2,7 +2,7 @@

[% tprintf(loc('%s admin:', "%s here is the site name"), site_name) %] [%- FOREACH link IN allowed_links %] - [% allowed_pages.$link.0 %] + [% allowed_pages.$link.0 %] [% IF NOT loop.last %]|[% END %] [% END %]

diff --git a/templates/web/base/admin/responsepriorities/index.html b/templates/web/base/admin/responsepriorities/index.html index d8a79420d..882a3c538 100644 --- a/templates/web/base/admin/responsepriorities/index.html +++ b/templates/web/base/admin/responsepriorities/index.html @@ -3,7 +3,7 @@ diff --git a/templates/web/base/admin/responsepriorities/list.html b/templates/web/base/admin/responsepriorities/list.html index b64941f86..c893a4c70 100644 --- a/templates/web/base/admin/responsepriorities/list.html +++ b/templates/web/base/admin/responsepriorities/list.html @@ -11,7 +11,7 @@ [% FOR p IN response_priorities %] [% p.name %] - [% loc('Edit') %] + [% loc('Edit') %] [% END %] diff --git a/templates/web/base/admin/templates.html b/templates/web/base/admin/templates.html index 25cd181aa..f9dda7a4c 100644 --- a/templates/web/base/admin/templates.html +++ b/templates/web/base/admin/templates.html @@ -19,7 +19,7 @@ [% t.title %] [% t.text %] [% t.created %] - [% loc('Edit') %] + [% loc('Edit') %] [% END %] diff --git a/templates/web/base/admin/templates_index.html b/templates/web/base/admin/templates_index.html index 1f45b84de..40e1be300 100644 --- a/templates/web/base/admin/templates_index.html +++ b/templates/web/base/admin/templates_index.html @@ -3,7 +3,7 @@ -- cgit v1.2.3