summaryrefslogtreecommitdiffstats
path: root/app/controllers/versions_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-12-07 10:26:07 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-12-07 10:26:07 +0000
commit3c44aac1f50cfee83e87baa21d758620749c01e0 (patch)
tree3dfbb0892524bac3e2953de6825a8e763f287fbc /app/controllers/versions_controller.rb
parent355289fa677f6a9a26e252e640861497a34cada6 (diff)
downloadredmine-3c44aac1f50cfee83e87baa21d758620749c01e0.tar.gz
redmine-3c44aac1f50cfee83e87baa21d758620749c01e0.zip
Added version details view accessible from the roadmap.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@955 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/versions_controller.rb')
-rw-r--r--app/controllers/versions_controller.rb10
1 files changed, 10 insertions, 0 deletions
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