forked from edavis10/redmine
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9528 e93f8b46-1217-0410-a6f0-8f06a7374b81
- Loading branch information
Showing
457 changed files
with
20,230 additions
and
5,367 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,7 @@ | ||
#!/usr/bin/env rake | ||
# Add your own tasks in files placed in lib/tasks ending in .rake, | ||
# for example lib/tasks/switchtower.rake, and they will automatically be available to Rake. | ||
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. | ||
|
||
require(File.join(File.dirname(__FILE__), 'config', 'boot')) | ||
require File.expand_path('../config/application', __FILE__) | ||
|
||
require 'rake' | ||
require 'rake/testtask' | ||
|
||
begin | ||
require 'rdoc/task' | ||
rescue LoadError | ||
# RDoc is not available | ||
end | ||
|
||
require 'tasks/rails' | ||
RedmineApp::Application.load_tasks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -930,6 +930,9 @@ def labelled_tabular_form_for(*args, &proc) | |
def labelled_form_for(*args, &proc) | ||
args << {} unless args.last.is_a?(Hash) | ||
options = args.last | ||
if args.first.is_a?(Symbol) | ||
options.merge!(:as => args.shift) | ||
end | ||
options.merge!({:builder => Redmine::Views::LabelledFormBuilder}) | ||
form_for(*args, &proc) | ||
end | ||
|
@@ -1060,7 +1063,7 @@ def email_delivery_enabled? | |
# +user+ can be a User or a string that will be scanned for an email address (eg. 'joe <[email protected]>') | ||
def avatar(user, options = { }) | ||
if Setting.gravatar_enabled? | ||
options.merge!({:ssl => (defined?(request) && request.ssl?), :default => Setting.gravatar_default}) | ||
options.merge!({:ssl => (request && request.ssl?), :default => Setting.gravatar_default}) | ||
email = nil | ||
if user.respond_to?(:mail) | ||
email = user.mail | ||
|
@@ -1079,7 +1082,7 @@ def sanitize_anchor_name(anchor) | |
|
||
# Returns the javascript tags that are included in the html layout head | ||
def javascript_heads | ||
tags = javascript_include_tag(:defaults) | ||
tags = javascript_include_tag('prototype', 'effects', 'dragdrop', 'controls', 'rails', 'application') | ||
unless User.current.pref.warn_on_leaving_unsaved == '0' | ||
tags << "\n".html_safe + javascript_tag("Event.observe(window, 'load', function(){ new WarnLeavingUnsaved('#{escape_javascript( l(:text_warn_on_leaving_unsaved) )}'); });") | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.