make apple points optional

a next step would be to move this to a plugin
This commit is contained in:
wvengen 2014-02-25 10:53:28 +01:00
parent f71b78665e
commit 3f032e5dd9
6 changed files with 11 additions and 5 deletions

View file

@ -27,7 +27,7 @@
= render :partial => 'shared/open_orders', :locals => {:ordergroup => current_user.ordergroup}
// Stats
- if current_user.ordergroup
- if current_user.ordergroup and FoodsoftConfig[:use_apple_points]
%section
%h2= t '.ordergroup.title'
= render :partial => "apple_bar", :locals => {:apple_bar => AppleBar.new(current_user.ordergroup)}