mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-04 06:51:48 +01:00
fix #1234 by checking on :review source view
This commit is contained in:
parent
b7ee2f79f5
commit
8b13ee88ab
2 changed files with 4 additions and 3 deletions
|
|
@ -34,6 +34,7 @@ class ProjectsController < ApplicationController
|
|||
end
|
||||
|
||||
def review
|
||||
@source_view = params['_source_view'] || 'review'
|
||||
@page_title = t('projects.list_reviews')
|
||||
@projects = current_user.projects.all
|
||||
@contexts = current_user.contexts.all
|
||||
|
|
@ -107,7 +108,7 @@ class ProjectsController < ApplicationController
|
|||
respond_to do |format|
|
||||
format.html
|
||||
format.m &render_project_mobile
|
||||
format.xml {
|
||||
format.xml {
|
||||
render :xml => @project.to_xml(:except => :user_id) { |xml|
|
||||
xml.not_done { @not_done.each { |child| child.to_xml(:builder => xml, :skip_instruct => true) } }
|
||||
xml.deferred { @deferred.each { |child| child.to_xml(:builder => xml, :skip_instruct => true) } }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue