Updated workgroups page.

* Make use of render :collection helper.
* Translated some links.
This commit is contained in:
Benjamin Meichsner 2009-03-23 10:57:41 +01:00
parent 1772e8840c
commit 549c03f223
2 changed files with 10 additions and 10 deletions

View file

@ -1,12 +1,14 @@
.single_column{:style => "width:50em"} .single_column{:style => "width:55em"}
.box_title .box_title
%h2= @group.name %h2= workgroup.name
.column_content .column_content
= render :partial => 'shared/group', :locals => { :group => @group } = render :partial => 'shared/group', :locals => { :group => workgroup }
%p %p
= link_to _("Show all tasks"), :controller => "tasks", :action => "workgroup", :id => @group = link_to "Alle Aufgaben zeigen", :controller => "tasks", :action => "workgroup", :id => workgroup
| |
- if @group.member?(@current_user) = link_to "Mitgliedern eine Nachricht schicken", :controller => 'messages', :action => 'group', :id => workgroup
= link_to _("Edit group"), :action => "edit_group", :id => @group - if workgroup.member?(@current_user)
| |
= link_to _('Send members a message'), :controller => 'messages', :action => 'group', :id => @group = link_to "Gruppe bearbeiten", :action => "edit_group", :id => workgroup
|
= link_to "Mitglieder bearbeiten", :action => "memberships", :id => workgroup

View file

@ -6,9 +6,7 @@
%br/ %br/
Wenn du einer Gruppe beitreten willst, dann schreib doch den Mitgliedern eine Nachricht. Wenn du einer Gruppe beitreten willst, dann schreib doch den Mitgliedern eine Nachricht.
- unless @groups.empty? = render :partial => "workgroup", :collection => @groups
-for @group in @groups
= render :partial => "workgroup"