]> source.dussan.org Git - redmine.git/commitdiff
added some diagnostic information on admin/info
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 20 Mar 2007 20:03:27 +0000 (20:03 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 20 Mar 2007 20:03:27 +0000 (20:03 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@359 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/admin_controller.rb
app/views/admin/info.rhtml
public/images/false.png [new file with mode: 0644]

index a9ad09ed71659f31de33b68ff4b02db401044605..907c0e743d9ab911ccd8b199d0464f66764c0940 100644 (file)
@@ -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
index 2ea692c796d919aa3cdbba5912216cef97954daa..0107fe9152017e95fb294e0fb9363febbd1a4565 100644 (file)
@@ -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>
diff --git a/public/images/false.png b/public/images/false.png
new file mode 100644 (file)
index 0000000..09e7d88
Binary files /dev/null and b/public/images/false.png differ