mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-28 03:36:11 +01:00
fix #1242 by fixing all the routing from the review button
This commit is contained in:
parent
923919e802
commit
af10e74017
4 changed files with 49 additions and 3 deletions
|
|
@ -74,7 +74,17 @@ class ProjectsController < ApplicationController
|
|||
def set_reviewed
|
||||
@project.last_reviewed = Time.zone.now
|
||||
@project.save
|
||||
redirect_to :action => 'show'
|
||||
|
||||
case @source_view
|
||||
when "project"
|
||||
redirect_to :action => 'show'
|
||||
when "project_list"
|
||||
redirect_to :action => 'index'
|
||||
when "review"
|
||||
redirect_to :action => 'review'
|
||||
else
|
||||
redirect_to :action => 'index'
|
||||
end
|
||||
end
|
||||
|
||||
def projects_and_actions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue