diff --git a/app/assets/stylesheets/admin.scss b/app/assets/stylesheets/admin.scss
index c1e7df9d91..84a270efb9 100644
--- a/app/assets/stylesheets/admin.scss
+++ b/app/assets/stylesheets/admin.scss
@@ -269,6 +269,12 @@ body.admin {
}
+/* Debug */
+
+table.table-debug {
+ font-family: monospace;
+}
+
/* Timeline */
.timeline_date {
diff --git a/app/views/admin/debug/index.html.erb b/app/views/admin/debug/index.html.erb
index f25536d44d..e88f70c4bf 100644
--- a/app/views/admin/debug/index.html.erb
+++ b/app/views/admin/debug/index.html.erb
@@ -1,4 +1,4 @@
-<% @title = "Debug" %>
+<% @title = 'Debug' %>
<%= @title %>
@@ -6,49 +6,85 @@
Version numbers
-
- Alaveteli version: <%= @current_version %>
-
- <% if @current_branch == "(no branch)" %>
- Alaveteli branch: (no branch)
- <% else %>
- Alaveteli branch: <%= link_to @current_branch, @github_origin + @current_branch %>
- <% end %>
-
- Alaveteli commit: <%= link_to @current_commit, @github_origin + @current_commit %>
-
- RUBY_VERSION <%= RUBY_VERSION %>
-
- Rails::VERSION::STRING <%= Rails::VERSION::STRING %>
-
- Xapian::version_string <%= Xapian::version_string %>
-
+
+
+ Alaveteli version: |
+ <%= @current_version %> |
+
+
+
+ Alaveteli Branch: |
+
+ <% if @current_branch == '(no branch)' %>
+ (no branch) |
+ <% else %>
+ <%= link_to @current_branch, @github_origin + @current_branch %> |
+ <% end %>
+
+
+
+ Alaveteli commit: |
+ <%= link_to @current_commit, @github_origin + @current_commit %> |
+
+
+
+ RUBY_VERSION |
+ <%= RUBY_VERSION %> |
+
+
+
+ Rails::VERSION::STRING |
+ <%= Rails::VERSION::STRING %> |
+
+
+
+ Xapian::version_string |
+ <<%= Xapian::version_string %> |
+
+
Configuration
-
- Rails env: <%= Rails.env %>
-
- Rails root: <%= Rails.root %>
-
+
+
+ Rails env: |
+ <%= Rails.env %> |
+
+
+ Rails root: |
+ <%= Rails.root %> |
+
+
Environment variables
-
+
+
<% @request_env.each do |k,v| %>
- <%= k %> | <%= v %> |
+
+ <%= k %> |
+ <%= v %> |
+
<% end %>
Parameters
-
+
+
<% params.each do |k,v| %>
- <%= k %> | <%= v %> |
+
+ <%= k %> |
+ <%= v %> |
+
<% end %>
Session
-
+
+
<% session.to_hash.each do |k,v| %>
- <%= k %> | <%= v %> |
+
+ <%= k %> |
+ <%= v %> |
+
<% end %>