2009-01-15 12:14:01 +01:00
|
|
|
%table
|
|
|
|
%tr
|
|
|
|
%td Beschreibung:
|
|
|
|
%td=h group.description
|
2009-02-06 21:18:20 +01:00
|
|
|
- if group.is_a?(Ordergroup) and (@current_user.role_admin? or @current_user.role_finance?)
|
2009-02-02 16:35:43 +01:00
|
|
|
%tr
|
|
|
|
%td Kontakt:
|
|
|
|
%td=h group.contact
|
|
|
|
%tr
|
|
|
|
%td Adresse:
|
|
|
|
%td= link_to_gmaps group.contact_address
|
2009-01-15 12:14:01 +01:00
|
|
|
%tr
|
|
|
|
%td Gruppe hat Zugriff auf:
|
2009-02-02 16:35:43 +01:00
|
|
|
%td= format_roles(group)
|
2009-01-15 12:14:01 +01:00
|
|
|
%tr
|
|
|
|
%td Mitglieder:
|
|
|
|
%td
|
|
|
|
- members = group.users
|
|
|
|
= "(#{members.size})"
|
|
|
|
= members.collect(&:nick).join(", ")
|
|
|
|
- if group.is_a?(Workgroup)
|
|
|
|
%tr
|
|
|
|
%td wöchentlicher Job:
|
|
|
|
%td
|
|
|
|
- if group.weekly_task
|
|
|
|
=h "#{group.task_name} am #{weekday(group.weekday)}"
|
|
|
|
- else
|
2012-09-30 13:34:16 +02:00
|
|
|
kein wöchentlicher Job definiert
|
|
|
|
- else
|
|
|
|
%tr
|
|
|
|
%td Äpfel-Bestellbeschränkung
|
|
|
|
%td= group.ignore_apple_restriction ? 'deaktiviert' : 'aktiviert'
|