From 3c44aac1f50cfee83e87baa21d758620749c01e0 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 7 Dec 2007 10:26:07 +0000 Subject: Added version details view accessible from the roadmap. git-svn-id: http://redmine.rubyforge.org/svn/trunk@955 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/versions_controller.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'app/controllers/versions_controller.rb') diff --git a/app/controllers/versions_controller.rb b/app/controllers/versions_controller.rb index 4e9016ebf..1365c97e8 100644 --- a/app/controllers/versions_controller.rb +++ b/app/controllers/versions_controller.rb @@ -21,6 +21,9 @@ class VersionsController < ApplicationController cache_sweeper :version_sweeper, :only => [ :edit, :destroy ] + def show + end + def edit if request.post? and @version.update_attributes(params[:version]) flash[:notice] = l(:notice_successful_update) @@ -49,6 +52,13 @@ class VersionsController < ApplicationController flash[:notice] = l(:notice_successful_delete) redirect_to :controller => 'projects', :action => 'list_files', :id => @project end + + def status_by + respond_to do |format| + format.html { render :action => 'show' } + format.js { render(:update) {|page| page.replace_html 'status_by', render_issue_status_by(@version, params[:status_by])} } + end + end private def find_project -- cgit v1.2.3