diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb index d0bfc41c..2dc3ab1c 100644 --- a/app/controllers/admin_controller.rb +++ b/app/controllers/admin_controller.rb @@ -76,11 +76,11 @@ class AdminController < ApplicationController def info @db_adapter_name = ActiveRecord::Base.connection.adapter_name - @flags = { - :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), - :plugin_assets_writable => File.writable?(Engines.public_directory), - :rmagick_available => Object.const_defined?(:Magick) - } + @checklist = [ + [:text_default_administrator_account_changed, User.find(:first, :conditions => ["login=? and hashed_password=?", 'admin', User.hash_password('admin')]).nil?], + [:text_file_repository_writable, File.writable?(Attachment.storage_path)], + [:text_plugin_assets_writable, File.writable?(Engines.public_directory)], + [:text_rmagick_available, Object.const_defined?(:Magick)] + ] end end diff --git a/app/views/admin/info.rhtml b/app/views/admin/info.rhtml index fcbebac0..eef1a674 100644 --- a/app/views/admin/info.rhtml +++ b/app/views/admin/info.rhtml @@ -3,10 +3,12 @@

<%= Redmine::Info.versioned_name %> (<%= @db_adapter_name %>)

- - - - +<% @checklist.each do |label, result| %> + + + + +<% end %>
<%= l(:text_default_administrator_account_changed) %><%= image_tag (@flags[:default_admin_changed] ? 'true.png' : 'false.png'), :style => "vertical-align:bottom;" %>
<%= l(:text_file_repository_writable) %> (<%= Attachment.storage_path %>)<%= image_tag (@flags[:file_repository_writable] ? 'true.png' : 'false.png'), :style => "vertical-align:bottom;" %>
<%= l(:text_plugin_assets_writable) %> (<%= Engines.public_directory %>)<%= image_tag (@flags[:plugin_assets_writable] ? 'true.png' : 'false.png'), :style => "vertical-align:bottom;" %>
<%= l(:text_rmagick_available) %><%= image_tag (@flags[:rmagick_available] ? 'true.png' : 'false.png'), :style => "vertical-align:bottom;" %>
<%= l(label) %><%= image_tag((result ? 'true.png' : 'exclamation.png'), :style => "vertical-align:bottom;") %>
<% html_title(l(:label_information_plural)) -%>