aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/admin_general/debug.html.erb
diff options
context:
space:
mode:
authorHenare Degan <henare.degan@gmail.com>2013-02-27 10:34:47 +1100
committerHenare Degan <henare.degan@gmail.com>2013-02-27 10:34:47 +1100
commit835b51c1de0d49e652fe9c9a60f0974275de070c (patch)
tree0d64a841f28654a66556bcc0c0bb1153bae645a2 /app/views/admin_general/debug.html.erb
parent77a284d6d088f7aa6d40810d46a39658fc6cf2cd (diff)
Rename ALL THE TEMPLATES!!1!!!one!!1!!
.rhtml is deprecated in favour of .erb in Rails 3
Diffstat (limited to 'app/views/admin_general/debug.html.erb')
-rw-r--r--app/views/admin_general/debug.html.erb52
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>
+