Fixed order views.
This commit is contained in:
parent
88b268cb0b
commit
b3c64ecb85
5 changed files with 11 additions and 9 deletions
|
|
@ -42,12 +42,12 @@ class OrdersController < ApplicationController
|
|||
@order= Order.find(params[:id])
|
||||
|
||||
if params[:view] # Articles-list will be replaced
|
||||
partial = case params[:view]
|
||||
when 'normal' then "articles"
|
||||
when 'groups'then 'shared/articles_by_groups'
|
||||
when 'articles'then 'shared/articles_by_articles'
|
||||
end
|
||||
render :partial => partial, :locals => {:order => @order} if partial
|
||||
@partial = case params[:view]
|
||||
when 'normal' then "articles"
|
||||
when 'groups'then 'shared/articles_by_groups'
|
||||
when 'articles'then 'shared/articles_by_articles'
|
||||
end
|
||||
render :layout => false
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue