##// END OF EJS Templates
Removed RedCloth checks since it's now supplied with the application....
Jean-Philippe Lang -
r697:22ad806a439e
parent child
Show More
@@ -67,6 +67,5 class AdminController < ApplicationController
67 67 @flags = Hash.new
68 68 @flags[:default_admin_changed] = User.find(:first, :conditions => ["login=? and hashed_password=?", 'admin', User.hash_password('admin')]).nil?
69 69 @flags[:file_repository_writable] = File.writable?(Attachment.storage_path)
70 @flags[:textile_available] = ActionView::Helpers::TextHelper.method_defined? "textilize"
71 70 end
72 71 end
@@ -29,6 +29,5 class SettingsController < ApplicationController
29 29 params[:settings].each { |name, value| Setting[name] = value }
30 30 redirect_to :action => 'edit' and return
31 31 end
32 @textile_available = ActionView::Helpers::TextHelper.method_defined?("textilize")
33 32 end
34 33 end
@@ -101,7 +101,7 module ApplicationHelper
101 101 html
102 102 end
103 103
104 # textilize text according to system settings and RedCloth availability
104 # format text according to system settings
105 105 def textilizable(text, options = {})
106 106 return "" if text.blank?
107 107
@@ -5,5 +5,4
5 5 <table class="list">
6 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 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>
9 8 </table>
@@ -35,7 +35,7
35 35 <%= text_field_tag 'settings[host_name]', Setting.host_name, :size => 60 %></p>
36 36
37 37 <p><label><%= l(:setting_text_formatting) %></label>
38 <%= select_tag 'settings[text_formatting]', options_for_select([[l(:label_none), 0], ["textile", "textile"]], (@textile_available ? Setting.text_formatting : 0)), :disabled => !@textile_available %></p>
38 <%= select_tag 'settings[text_formatting]', options_for_select([[l(:label_none), "0"], ["textile", "textile"]], Setting.text_formatting) %></p>
39 39
40 40 <p><label><%= l(:setting_wiki_compression) %></label>
41 41 <%= select_tag 'settings[wiki_compression]', options_for_select( [[l(:label_none), 0], ["gzip", "gzip"]], Setting.wiki_compression) %></p>
General Comments 0
You need to be logged in to leave comments. Login now