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

@ -13,6 +13,6 @@
- members = group.users
= "(#{members.size})"
= members.collect{|u| show_user(u)}.join(", ")
- unless group.is_a?(Workgroup)
- if group.is_a?(Ordergroup) and FoodsoftConfig[:use_apple_points]
%dt= t '.apple_limit'
%dd= group.ignore_apple_restriction ? t('.deactivated') : t('.activated')