diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb index a9ad09ed..907c0e74 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 2ea692c7..0107fe91 100644 --- a/app/views/admin/info.rhtml +++ b/app/views/admin/info.rhtml @@ -1,3 +1,8 @@

<%=l(:label_information_plural)%>

-

<%=l(:field_version)%>: redMine <%= Redmine::VERSION %> (<%= @db_adapter_name %>)

\ No newline at end of file +

<%=l(:field_version)%>: redMine <%= Redmine::VERSION %> (<%= @db_adapter_name %>)

+ + + + +
File repository writable<%= image_tag (@file_repository_writable ? 'true' : 'false'), :style => "vertical-align:bottom;" %>
Default administrator account changed<%= image_tag (@default_admin_changed ? 'true' : 'false'), :style => "vertical-align:bottom;" %>
diff --git a/public/images/false.png b/public/images/false.png new file mode 100644 index 00000000..09e7d88f Binary files /dev/null and b/public/images/false.png differ