@@ -52,7 +52,9 class AdminController < ApplicationController | |||
|
52 | 52 | |
|
53 | 53 | def info |
|
54 | 54 | @db_adapter_name = ActiveRecord::Base.connection.adapter_name |
|
55 | @default_admin_changed = User.find(:first, :conditions => ["login=? and hashed_password=?", 'admin', User.hash_password('admin')]).nil? | |
|
56 | @file_repository_writable = File.writable?(Attachment.storage_path) | |
|
55 | @flags = Hash.new | |
|
56 | @flags[:default_admin_changed] = User.find(:first, :conditions => ["login=? and hashed_password=?", 'admin', User.hash_password('admin')]).nil? | |
|
57 | @flags[:file_repository_writable] = File.writable?(Attachment.storage_path) | |
|
58 | @flags[:textile_available] = ActionView::Helpers::TextHelper.method_defined? "textilize" | |
|
57 | 59 | end |
|
58 | 60 | end |
@@ -3,6 +3,7 | |||
|
3 | 3 | <p><%=l(:field_version)%>: <strong>redMine <%= Redmine::VERSION %></strong> (<%= @db_adapter_name %>)</p> |
|
4 | 4 | |
|
5 | 5 | <table class="list"> |
|
6 | <tr class="odd"><td>File repository writable</td><td><%= image_tag (@file_repository_writable ? 'true' : 'false'), :style => "vertical-align:bottom;" %></td></tr> | |
|
7 | <tr class="even"><td>Default administrator account changed</td><td><%= image_tag (@default_admin_changed ? 'true' : 'false'), :style => "vertical-align:bottom;" %></td></tr> | |
|
6 | <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> | |
|
7 | <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> | |
|
8 | <tr class="odd"><td>Textile available</td><td><%= image_tag (@flags[:textile_available] ? 'true.png' : 'false.png'), :style => "vertical-align:bottom;" %></td></tr> | |
|
8 | 9 | </table> |
General Comments 0
You need to be logged in to leave comments.
Login now