01cf6431a9
Messagegroups are a new kind of group. Every user can join and leave such a group on her own. They are useful to create topics for mails. E.g. if there is a weekly newsletter we can create a new messagegroup for it and every user which is interested in receiving the newsletter can join the corresponding group.
19 lines
784 B
Text
19 lines
784 B
Text
%dl
|
|
%dt= heading_helper(Ordergroup, :description) + ':'
|
|
%dd=h group.description
|
|
- if group.is_a?(Ordergroup) and (@current_user.role_admin? or @current_user.role_finance?)
|
|
%dt= heading_helper(Ordergroup, :contact) + ':'
|
|
%dd=h group.contact
|
|
%dt= heading_helper(Ordergroup, :contact_address) + ':'
|
|
%dd= link_to_gmaps group.contact_address
|
|
- if group.is_a?(Workgroup)
|
|
%dt= t('.access') + ':'
|
|
%dd= format_roles(group)
|
|
%dt= heading_helper(Ordergroup, :user_tokens) + ':'
|
|
%dd
|
|
- members = group.users
|
|
= "(#{members.size})"
|
|
= members.collect{|u| show_user(u)}.join(", ")
|
|
- if group.is_a?(Ordergroup) and FoodsoftConfig[:use_apple_points]
|
|
%dt= t '.apple_limit'
|
|
%dd= group.ignore_apple_restriction ? t('.deactivated') : t('.activated')
|