##// END OF EJS Templates
When copying issues, let the status be changed to default or left unchanged....
When copying issues, let the status be changed to default or left unchanged. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9404 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r8941:b3866b05c14b
r9270:09375960d69d
Show More
trackers_controller.rb
83 lines | 2.4 KiB | text/x-ruby | RubyLexer
/ app / controllers / trackers_controller.rb
Jean-Philippe Lang
Trackers controller refactoring....
r2462 # Redmine - project management software
Toshi MARUYAMA
remove trailing white-spaces from app/controllers/trackers_controller.rb....
r6685 # Copyright (C) 2006-2011 Jean-Philippe Lang
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 #
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
Toshi MARUYAMA
remove trailing white-spaces from app/controllers/trackers_controller.rb....
r6685 #
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 # This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
Toshi MARUYAMA
remove trailing white-spaces from app/controllers/trackers_controller.rb....
r6685 #
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 # You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
class TrackersController < ApplicationController
Jean-Philippe Lang
Adds an admin layout that displays the admin menu in the sidebar....
r3062 layout 'admin'
Toshi MARUYAMA
remove trailing white-spaces from app/controllers/trackers_controller.rb....
r6685
Jean-Philippe Lang
Adds API response to /trackers to get the list of all available trackers (#7181)....
r7757 before_filter :require_admin, :except => :index
before_filter :require_admin_or_api_request, :only => :index
accept_api_auth :index
Jean-Philippe Lang
Initial commit...
r2
Eric Davis
Refactor: Merged TrackersController#list and #index...
r3323 def index
Jean-Philippe Lang
Adds API response to /trackers to get the list of all available trackers (#7181)....
r7757 respond_to do |format|
format.html {
@tracker_pages, @trackers = paginate :trackers, :per_page => 10, :order => 'position'
render :action => "index", :layout => false if request.xhr?
}
format.api {
@trackers = Tracker.all
}
end
Jean-Philippe Lang
Initial commit...
r2 end
def new
Jean-Philippe Lang
Resourcified trackers....
r7768 @tracker ||= Tracker.new(params[:tracker])
@trackers = Tracker.find :all, :order => 'position'
@projects = Project.find(:all)
end
def create
Jean-Philippe Lang
Initial commit...
r2 @tracker = Tracker.new(params[:tracker])
if request.post? and @tracker.save
Jean-Philippe Lang
Added the ability to copy an existing workflow when creating a new tracker....
r396 # workflow copy
Jean-Philippe Lang
Fixed: error when creating a tracker without copying an existing wokflow...
r595 if !params[:copy_workflow_from].blank? && (copy_from = Tracker.find_by_id(params[:copy_workflow_from]))
Jean-Philippe Lang
Workflow copy:...
r1237 @tracker.workflows.copy(copy_from)
Jean-Philippe Lang
Added the ability to copy an existing workflow when creating a new tracker....
r396 end
Jean-Philippe Lang
notice messages translation...
r15 flash[:notice] = l(:notice_successful_create)
Eric Davis
Refactor: Merged TrackersController#list and #index...
r3323 redirect_to :action => 'index'
Jean-Philippe Lang
Adds projects association on tracker form (#2578)....
r2333 return
Jean-Philippe Lang
Initial commit...
r2 end
Jean-Philippe Lang
Resourcified trackers....
r7768 new
render :action => 'new'
Jean-Philippe Lang
Initial commit...
r2 end
def edit
Jean-Philippe Lang
Resourcified trackers....
r7768 @tracker ||= Tracker.find(params[:id])
@projects = Project.find(:all)
end
def update
Jean-Philippe Lang
Initial commit...
r2 @tracker = Tracker.find(params[:id])
Jean-Philippe Lang
Resourcified trackers....
r7768 if request.put? and @tracker.update_attributes(params[:tracker])
Jean-Philippe Lang
notice messages translation...
r15 flash[:notice] = l(:notice_successful_update)
Eric Davis
Refactor: Merged TrackersController#list and #index...
r3323 redirect_to :action => 'index'
Jean-Philippe Lang
Adds projects association on tracker form (#2578)....
r2333 return
Jean-Philippe Lang
Initial commit...
r2 end
Jean-Philippe Lang
Resourcified trackers....
r7768 edit
render :action => 'edit'
Jean-Philippe Lang
Initial commit...
r2 end
Toshi MARUYAMA
remove trailing white-spaces from app/controllers/trackers_controller.rb....
r6685
Jean-Philippe Lang
Initial commit...
r2 def destroy
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 @tracker = Tracker.find(params[:id])
unless @tracker.issues.empty?
Azamat Hackimov
New strings to localization (#5225)...
r3513 flash[:error] = l(:error_can_not_delete_tracker)
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 else
@tracker.destroy
Jean-Philippe Lang
Initial commit...
r2 end
Eric Davis
Refactor: Merged TrackersController#list and #index...
r3323 redirect_to :action => 'index'
Toshi MARUYAMA
remove trailing white-spaces from app/controllers/trackers_controller.rb....
r6685 end
Jean-Philippe Lang
Initial commit...
r2 end