aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Houston <robin.houston@gmail.com>2012-06-03 19:46:11 +0100
committerRobin Houston <robin.houston@gmail.com>2012-06-03 19:46:11 +0100
commit020e3b00b4886fc42621a0b39f3217abb764aee9 (patch)
tree7a1527af0ca77e64dc94e845c857b0dd44d0c758
parent28fac418f2bf4dd21f150054713f1b7fe410c67a (diff)
Respect ADMIN_BASE_URL
It turns out the admin layout has NEVER respected ADMIN_BASE_URL.
-rw-r--r--app/views/layouts/admin.rhtml16
1 files changed, 8 insertions, 8 deletions
diff --git a/app/views/layouts/admin.rhtml b/app/views/layouts/admin.rhtml
index 65670538d..d85eecbf2 100644
--- a/app/views/layouts/admin.rhtml
+++ b/app/views/layouts/admin.rhtml
@@ -13,15 +13,15 @@
<p>
<strong><%= link_to 'Alaveteli', main_url('/') %> admin:</strong>
- <%= link_to 'Summary', admin_general_index_path %>
- | <%= link_to 'Timeline', admin_timeline_path %>
- | <%= link_to 'Stats', admin_stats_path %>
- | <%= link_to 'Debug', admin_debug_path %>
+ <%= link_to 'Summary', admin_url("") %>
+ | <%= link_to 'Timeline', admin_url("timeline") %>
+ | <%= link_to 'Stats', admin_url("stats") %>
+ | <%= link_to 'Debug', admin_url("debug") %>
<strong>View:</strong>
- <%= link_to 'Authorities', admin_body_list_path %>
- | <%= link_to 'Requests', admin_request_list_path %>
- | <%= link_to 'Users', admin_user_list_path %>
- | <%= link_to 'Tracks', admin_track_list_path %>
+ <%= link_to 'Authorities', admin_url("body/list") %>
+ | <%= link_to 'Requests', admin_url("request/list") %>
+ | <%= link_to 'Users', admin_url("user/list") %>
+ | <%= link_to 'Tracks', admin_url("track/list") %>
</p>
<%= render :partial => 'general/locale_switcher' %>