diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-03-26 18:03:25 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-03-26 18:03:25 +0000 |
commit | 3a28fa01b096f59b5e72989a1e70a31f28d14f65 (patch) | |
tree | 44e7564d81fc65b51cbbfeeb5e61021f4fd1cde1 /app | |
parent | 8a84884d5042d0bedada0a744129f96f9a772cff (diff) | |
download | redmine-3a28fa01b096f59b5e72989a1e70a31f28d14f65.tar.gz redmine-3a28fa01b096f59b5e72989a1e70a31f28d14f65.zip |
added info about textile availabality on admin/info
git-svn-id: http://redmine.rubyforge.org/svn/trunk@386 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/admin_controller.rb | 6 | ||||
-rw-r--r-- | app/views/admin/info.rhtml | 5 |
2 files changed, 7 insertions, 4 deletions
diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb index 907c0e743..1c10722de 100644 --- a/app/controllers/admin_controller.rb +++ b/app/controllers/admin_controller.rb @@ -52,7 +52,9 @@ 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) + @flags = Hash.new + @flags[:default_admin_changed] = User.find(:first, :conditions => ["login=? and hashed_password=?", 'admin', User.hash_password('admin')]).nil? + @flags[:file_repository_writable] = File.writable?(Attachment.storage_path) + @flags[:textile_available] = ActionView::Helpers::TextHelper.method_defined? "textilize" end end diff --git a/app/views/admin/info.rhtml b/app/views/admin/info.rhtml index 0107fe915..dd11aeb1a 100644 --- a/app/views/admin/info.rhtml +++ b/app/views/admin/info.rhtml @@ -3,6 +3,7 @@ <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> +<tr class="odd"><td>File repository writable</td><td><%= image_tag (@flags[:file_repository_writable] ? 'true.png' : 'false.png'), :style => "vertical-align:bottom;" %></td></tr> +<tr class="even"><td>Default administrator account changed</td><td><%= image_tag (@flags[:default_admin_changed] ? 'true.png' : 'false.png'), :style => "vertical-align:bottom;" %></td></tr> +<tr class="odd"><td>Textile available</td><td><%= image_tag (@flags[:textile_available] ? 'true.png' : 'false.png'), :style => "vertical-align:bottom;" %></td></tr> </table> |