##// END OF EJS Templates
Admin info cleanup....
Jean-Philippe Lang -
r3086:4398386c48bb
parent child
Show More
@@ -76,11 +76,11 class AdminController < ApplicationController
76
76
77 def info
77 def info
78 @db_adapter_name = ActiveRecord::Base.connection.adapter_name
78 @db_adapter_name = ActiveRecord::Base.connection.adapter_name
79 @flags = {
79 @checklist = [
80 :default_admin_changed => User.find(:first, :conditions => ["login=? and hashed_password=?", 'admin', User.hash_password('admin')]).nil?,
80 [:text_default_administrator_account_changed, User.find(:first, :conditions => ["login=? and hashed_password=?", 'admin', User.hash_password('admin')]).nil?],
81 :file_repository_writable => File.writable?(Attachment.storage_path),
81 [:text_file_repository_writable, File.writable?(Attachment.storage_path)],
82 :plugin_assets_writable => File.writable?(Engines.public_directory),
82 [:text_plugin_assets_writable, File.writable?(Engines.public_directory)],
83 :rmagick_available => Object.const_defined?(:Magick)
83 [:text_rmagick_available, Object.const_defined?(:Magick)]
84 }
84 ]
85 end
85 end
86 end
86 end
@@ -3,10 +3,12
3 <p><strong><%= Redmine::Info.versioned_name %></strong> (<%= @db_adapter_name %>)</p>
3 <p><strong><%= Redmine::Info.versioned_name %></strong> (<%= @db_adapter_name %>)</p>
4
4
5 <table class="list">
5 <table class="list">
6 <tr class="odd"><td><%= l(:text_default_administrator_account_changed) %></td><td><%= image_tag (@flags[:default_admin_changed] ? 'true.png' : 'false.png'), :style => "vertical-align:bottom;" %></td></tr>
6 <% @checklist.each do |label, result| %>
7 <tr class="even"><td><%= l(:text_file_repository_writable) %> (<%= Attachment.storage_path %>)</td><td><%= image_tag (@flags[:file_repository_writable] ? 'true.png' : 'false.png'), :style => "vertical-align:bottom;" %></td></tr>
7 <tr class="<%= cycle 'odd', 'even' %>">
8 <tr class="odd"><td><%= l(:text_plugin_assets_writable) %> (<%= Engines.public_directory %>)</td><td><%= image_tag (@flags[:plugin_assets_writable] ? 'true.png' : 'false.png'), :style => "vertical-align:bottom;" %></td></tr>
8 <td><%= l(label) %></td>
9 <tr class="even"><td><%= l(:text_rmagick_available) %></td><td><%= image_tag (@flags[:rmagick_available] ? 'true.png' : 'false.png'), :style => "vertical-align:bottom;" %></td></tr>
9 <td width="30px"><%= image_tag((result ? 'true.png' : 'exclamation.png'), :style => "vertical-align:bottom;") %></td>
10 </tr>
11 <% end %>
10 </table>
12 </table>
11
13
12 <% html_title(l(:label_information_plural)) -%>
14 <% html_title(l(:label_information_plural)) -%>
General Comments 0
You need to be logged in to leave comments. Login now