diff options
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/admin/debug.rhtml | 18 | ||||
-rw-r--r-- | app/views/layouts/admin.rhtml | 5 |
2 files changed, 21 insertions, 2 deletions
diff --git a/app/views/admin/debug.rhtml b/app/views/admin/debug.rhtml new file mode 100644 index 000000000..8a3fcc895 --- /dev/null +++ b/app/views/admin/debug.rhtml @@ -0,0 +1,18 @@ +<% @title = "Debug" %> + +<h1><%=@title%></h1> + +<h2>Environment variables</h2> +<pre> +<%= @request_env.to_yaml %> +</pre> + +<h2>Parameters</h2> +<pre> +<%= params.to_yaml %> +</pre> + +<h2>Session</h2> +<pre> +<%= session.to_yaml %> +</pre> diff --git a/app/views/layouts/admin.rhtml b/app/views/layouts/admin.rhtml index d4f22f412..51814b0d1 100644 --- a/app/views/layouts/admin.rhtml +++ b/app/views/layouts/admin.rhtml @@ -10,13 +10,14 @@ </head> <body> - <p><strong><%= link_to 'WhatDoTheyKnow', main_url('/') %> admin interface</strong> + <p><strong><%= link_to 'WhatDoTheyKnow', main_url('/') %> admin interface:</strong> <%= link_to 'Overview', admin_url('') %> | <%= link_to 'Timeline', admin_url('timeline') %> | <%= link_to 'Public authorities', admin_url('body/list') %> | <%= link_to 'Requests', admin_url('request/list') %> | <%= link_to 'Users', admin_url('user/list') %> - - you are <%= h @http_auth_user %> + | <%= link_to 'Debug', admin_url('debug') %> + - you are <%= h @http_auth_user %> </p> <p style="color: green"><%= flash[:notice] %></p> |