Revision 1297:0a574315af3e .svn/pristine/df
| .svn/pristine/df/df6fd1ef51749d0107798a995c0b68c5aafb7419.svn-base | ||
|---|---|---|
| 1 |
# Settings specified here will take precedence over those in config/application.rb |
|
| 2 |
RedmineApp::Application.configure do |
|
| 3 |
# The production environment is meant for finished, "live" apps. |
|
| 4 |
# Code is not reloaded between requests |
|
| 5 |
config.cache_classes = true |
|
| 6 |
|
|
| 7 |
##### |
|
| 8 |
# Customize the default logger (http://ruby-doc.org/core/classes/Logger.html) |
|
| 9 |
# |
|
| 10 |
# Use a different logger for distributed setups |
|
| 11 |
# config.logger = SyslogLogger.new |
|
| 12 |
# |
|
| 13 |
# Rotate logs bigger than 1MB, keeps no more than 7 rotated logs around. |
|
| 14 |
# When setting a new Logger, make sure to set it's log level too. |
|
| 15 |
# |
|
| 16 |
# config.logger = Logger.new(config.log_path, 7, 1048576) |
|
| 17 |
# config.logger.level = Logger::INFO |
|
| 18 |
|
|
| 19 |
# Full error reports are disabled and caching is turned on |
|
| 20 |
config.action_controller.perform_caching = true |
|
| 21 |
|
|
| 22 |
# Enable serving of images, stylesheets, and javascripts from an asset server |
|
| 23 |
# config.action_controller.asset_host = "http://assets.example.com" |
|
| 24 |
|
|
| 25 |
# Disable delivery errors if you bad email addresses should just be ignored |
|
| 26 |
config.action_mailer.raise_delivery_errors = false |
|
| 27 |
|
|
| 28 |
# No email in production log |
|
| 29 |
config.action_mailer.logger = nil |
|
| 30 |
|
|
| 31 |
config.active_support.deprecation = :log |
|
| 32 |
end |
|
| .svn/pristine/df/dfaada6847118a5a5c356f284d85534d2f72a859.svn-base | ||
|---|---|---|
| 1 |
<%= wiki_page_breadcrumb(@page) %> |
|
| 2 |
|
|
| 3 |
<h2><%= h @page.pretty_title %></h2> |
|
| 4 |
|
|
| 5 |
<%= form_for @content, :as => :content, |
|
| 6 |
:url => {:action => 'update', :id => @page.title},
|
|
| 7 |
:html => {:method => :put, :multipart => true, :id => 'wiki_form'} do |f| %>
|
|
| 8 |
<%= f.hidden_field :version %> |
|
| 9 |
<% if @section %> |
|
| 10 |
<%= hidden_field_tag 'section', @section %> |
|
| 11 |
<%= hidden_field_tag 'section_hash', @section_hash %> |
|
| 12 |
<% end %> |
|
| 13 |
<%= error_messages_for 'content' %> |
|
| 14 |
|
|
| 15 |
<div class="box tabular"> |
|
| 16 |
<%= text_area_tag 'content[text]', @text, :cols => 100, :rows => 25, |
|
| 17 |
:class => 'wiki-edit', :accesskey => accesskey(:edit) %> |
|
| 18 |
|
|
| 19 |
<% if @page.safe_attribute_names.include?('parent_id') && @wiki.pages.any? %>
|
|
| 20 |
<%= fields_for @page do |fp| %> |
|
| 21 |
<p> |
|
| 22 |
<label><%= l(:field_parent_title) %></label> |
|
| 23 |
<%= fp.select :parent_id, |
|
| 24 |
content_tag('option', '', :value => '') +
|
|
| 25 |
wiki_page_options_for_select(@wiki.pages.all(:include => :parent) - |
|
| 26 |
@page.self_and_descendants, @page.parent) %> |
|
| 27 |
</p> |
|
| 28 |
<% end %> |
|
| 29 |
<% end %> |
|
| 30 |
|
|
| 31 |
<p><label><%= l(:field_comments) %></label><%= f.text_field :comments, :size => 120 %></p> |
|
| 32 |
<p><label><%=l(:label_attachment_plural)%></label><%= render :partial => 'attachments/form' %></p> |
|
| 33 |
</div> |
|
| 34 |
|
|
| 35 |
<p><%= submit_tag l(:button_save) %> |
|
| 36 |
<%= preview_link({:controller => 'wiki', :action => 'preview', :project_id => @project, :id => @page.title }, 'wiki_form') %></p>
|
|
| 37 |
<%= wikitoolbar_for 'content_text' %> |
|
| 38 |
<% end %> |
|
| 39 |
|
|
| 40 |
<div id="preview" class="wiki"></div> |
|
| 41 |
|
|
| 42 |
<% content_for :header_tags do %> |
|
| 43 |
<%= robot_exclusion_tag %> |
|
| 44 |
<% end %> |
|
| 45 |
|
|
| 46 |
<% html_title @page.pretty_title %> |
|
Also available in: Unified diff