summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-03-20 20:03:27 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-03-20 20:03:27 +0000
commitf3f75f557a34a4b6183aa0cdf8b95f4ce5864850 (patch)
tree68c58315f0cb94bb5070b9a0028ed3dc7174ffd9 /app
parent8bf5759d26946f8641ba35d827b2e74616a88bbf (diff)
downloadredmine-f3f75f557a34a4b6183aa0cdf8b95f4ce5864850.tar.gz
redmine-f3f75f557a34a4b6183aa0cdf8b95f4ce5864850.zip
added some diagnostic information on admin/info
git-svn-id: http://redmine.rubyforge.org/svn/trunk@359 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/controllers/admin_controller.rb2
-rw-r--r--app/views/admin/info.rhtml7
2 files changed, 8 insertions, 1 deletions
diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb
index a9ad09ed7..907c0e743 100644
--- a/app/controllers/admin_controller.rb
+++ b/app/controllers/admin_controller.rb
@@ -52,5 +52,7 @@ class AdminController < ApplicationController
def info
@db_adapter_name = ActiveRecord::Base.connection.adapter_name
+ @default_admin_changed = User.find(:first, :conditions => ["login=? and hashed_password=?", 'admin', User.hash_password('admin')]).nil?
+ @file_repository_writable = File.writable?(Attachment.storage_path)
end
end
diff --git a/app/views/admin/info.rhtml b/app/views/admin/info.rhtml
index 2ea692c79..0107fe915 100644
--- a/app/views/admin/info.rhtml
+++ b/app/views/admin/info.rhtml
@@ -1,3 +1,8 @@
<h2><%=l(:label_information_plural)%></h2>
-<p><%=l(:field_version)%>: <strong>redMine <%= Redmine::VERSION %></strong> (<%= @db_adapter_name %>)</p> \ No newline at end of file
+<p><%=l(:field_version)%>: <strong>redMine <%= Redmine::VERSION %></strong> (<%= @db_adapter_name %>)</p>
+
+<table class="list">
+<tr class="odd"><td>File repository writable</td><td><%= image_tag (@file_repository_writable ? 'true' : 'false'), :style => "vertical-align:bottom;" %></td></tr>
+<tr class="even"><td>Default administrator account changed</td><td><%= image_tag (@default_admin_changed ? 'true' : 'false'), :style => "vertical-align:bottom;" %></td></tr>
+</table>