Fixed admin, orders, wiki views. Converted all erb to haml.
This commit is contained in:
parent
699fb9b233
commit
552c553b77
169 changed files with 1158 additions and 1307 deletions
|
|
@ -54,8 +54,7 @@ class GroupOrdersController < ApplicationController
|
|||
# if selected, it shows all orders of the foodcoop
|
||||
def archive
|
||||
# get only orders belonging to the ordergroup
|
||||
@closed_orders = Order.paginate :page => params[:page], :per_page => 10,
|
||||
:conditions => { :state => 'closed' }, :order => "orders.ends DESC"
|
||||
@closed_orders = Order.closed.page(params[:page]).per(10)
|
||||
|
||||
respond_to do |format|
|
||||
format.html # archive.html.haml
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue