Fixed open_orders partial.
This commit is contained in:
parent
5b2df07378
commit
adbe93f39e
3 changed files with 5 additions and 6 deletions
|
@ -29,7 +29,7 @@
|
||||||
|
|
||||||
- if current_user.ordergroup
|
- if current_user.ordergroup
|
||||||
// Current orders
|
// Current orders
|
||||||
= render :partial => 'shared/open_orders'
|
= render :partial => 'shared/open_orders', :locals => {:ordergroup => current_user.ordergroup}
|
||||||
|
|
||||||
// Stats
|
// Stats
|
||||||
- if current_user.ordergroup
|
- if current_user.ordergroup
|
||||||
|
|
|
@ -15,13 +15,12 @@
|
||||||
%tr{:class => cycle('even', 'odd', :name => 'open_orders')}
|
%tr{:class => cycle('even', 'odd', :name => 'open_orders')}
|
||||||
%td= link_to h(order.name), :controller => 'ordering', :action => 'order', :id => order
|
%td= link_to h(order.name), :controller => 'ordering', :action => 'order', :id => order
|
||||||
%td=h format_time(order.ends) unless order.ends.nil?
|
%td=h format_time(order.ends) unless order.ends.nil?
|
||||||
- if group_order = order.group_order(@ordergroup)
|
- if group_order = order.group_order(ordergroup)
|
||||||
- total += group_order.price
|
- total += group_order.price
|
||||||
%td=h "#{group_order.updated_by.nick} (#{format_time(group_order.updated_on)})"
|
%td= "#{group_order.updated_by.nick} (#{format_time(group_order.updated_on)})"
|
||||||
%td= number_to_currency(group_order.price)
|
%td= number_to_currency(group_order.price)
|
||||||
- else
|
- else
|
||||||
%td
|
%td{:colspan => 2}
|
||||||
%td
|
|
||||||
- if total > 0
|
- if total > 0
|
||||||
%p
|
%p
|
||||||
Gesamtsumme:
|
Gesamtsumme:
|
||||||
|
|
Loading…
Reference in a new issue