added some diagnostic information on admin/info
git-svn-id: http://redmine.rubyforge.org/svn/trunk@359 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
8bf5759d26
commit
f3f75f557a
|
@ -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
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
<h2><%=l(:label_information_plural)%></h2>
|
||||
|
||||
<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>
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 689 B |
Loading…
Reference in New Issue