Replaced IndexController by Home- and FoodcoopController. Some reorganizing in groups/memberships-logic (moved memberships out of admin-namespace).

This commit is contained in:
Benjamin Meichsner 2009-01-15 12:14:01 +01:00
parent fadc951208
commit 6ce6c2c75a
70 changed files with 553 additions and 934 deletions

View 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