diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb index a9ad09e..907c0e7 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 2ea692c..0107fe9 100644 --- a/app/views/admin/info.rhtml +++ b/app/views/admin/info.rhtml @@ -1,3 +1,8 @@
<%=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;" %> |