diff options
Diffstat (limited to 'app/views/admin_general/debug.html.erb')
-rw-r--r-- | app/views/admin_general/debug.html.erb | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/app/views/admin_general/debug.html.erb b/app/views/admin_general/debug.html.erb new file mode 100644 index 000000000..b0749bedb --- /dev/null +++ b/app/views/admin_general/debug.html.erb @@ -0,0 +1,52 @@ +<% @title = "Debug" %> + +<h1><%=@title%></h1> + +<p>You are <%= h @admin_current_user %></p> + +<h2>Version numbers</h2> + +<p> +Alaveteli version: <%= link_to @current_version, @github_origin + @current_version %> +<br> +Alaveteli branch: <%= link_to @current_branch, @github_origin + @current_branch %> +<br> +Alaveteli commit: <%= link_to @current_commit, @github_origin + @current_commit %> +<br> +RUBY_VERSION <%=h RUBY_VERSION %> +<br> +Rails::VERSION::STRING <%=h Rails::VERSION::STRING%> +<br> +TMail::VERSION::STRING <%=h TMail::VERSION::STRING%> +<br> +Xapian::version_string <%=h Xapian::version_string%> +</p> + +<h2>Configuration</h2> + +<p>environment: <%=h Rails::configuration.environment %> +<br>environment_path: <%=h Rails::configuration.environment_path %> +<br>framework_paths: <%=h Rails::configuration.framework_paths.to_yaml %> +</p> + +<h2>Environment variables</h2> +<table> +<% for k,v in @request_env %> + <tr><td><%=h k%></td><td><%=h v%></td></tr> +<% end %> +</table> + +<h2>Parameters</h2> +<table> +<% for k,v in params %> + <tr><td><%=h k%></td><td><%=h v%></td></tr> +<% end %> +</table> + +<h2>Session</h2> +<table> +<% for k,v in session %> + <tr><td><%=h k%></td><td><%=h v%></td></tr> +<% end %> +</table> + |