Fixed foodcoop/ordergroups and workgroups views.

This commit is contained in:
benni 2012-10-08 16:20:24 +02:00
parent ab81ef09d5
commit c0c41a7752
7 changed files with 63 additions and 75 deletions

View file

@ -1,12 +1,7 @@
.single_column{:style => "width:55em"}
.box_title
%h2= workgroup.name
.column_content
= render :partial => 'shared/group', :locals => { :group => workgroup }
%p
= link_to "Alle Aufgaben zeigen", workgroup_tasks_path(workgroup_id: workgroup)
|
= link_to "Mitgliedern eine Nachricht schicken", new_message_path(:message => {:group_id => workgroup.id})
- if workgroup.member?(@current_user)
|
= link_to "Gruppe bearbeiten", edit_foodcoop_workgroup_path(workgroup)
%section.well
%h3= workgroup.name
= render :partial => 'shared/group', :locals => { :group => workgroup }
= link_to "Alle Aufgaben zeigen", workgroup_tasks_path(workgroup_id: workgroup), class: 'btn'
= link_to_new_message message_params: {group_id: workgroup.id}
- if workgroup.member?(current_user)
= link_to "Gruppe bearbeiten", edit_foodcoop_workgroup_path(workgroup), class: 'btn'