Replaced IndexController by Home- and FoodcoopController. Some reorganizing in groups/memberships-logic (moved memberships out of admin-namespace).
This commit is contained in:
parent
fadc951208
commit
6ce6c2c75a
70 changed files with 553 additions and 934 deletions
28
app/views/shared/_group.html.haml
Normal file
28
app/views/shared/_group.html.haml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
%table
|
||||
%tr
|
||||
%td Beschreibung:
|
||||
%td=h group.description
|
||||
%tr
|
||||
%td Gruppe hat Zugriff auf:
|
||||
%td
|
||||
- roles = Array.new
|
||||
- roles << 'Administration' if group.role_admin?
|
||||
- roles << 'Finanzen' if group.role_finance?
|
||||
- roles << 'Lieferanten' if group.role_suppliers?
|
||||
- roles << 'Artikel' if group.role_article_meta?
|
||||
- roles << 'Bestellungsverwaltung' if group.role_orders?
|
||||
= roles.join(', ')
|
||||
%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
|
||||
kein wöchentlicher Job definiert
|
||||
Loading…
Add table
Add a link
Reference in a new issue