2009-01-13 19:01:56 +01:00
|
|
|
<% if flash[:error] %>
|
|
|
|
<h3 class="error" id="flashError" ><%= flash[:error] %></h3>
|
|
|
|
<%= javascript_tag("new Effect.Highlight('flashError', {delay:0.8, duration:1});") -%>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% memberships = @group.memberships
|
|
|
|
if memberships.size != 0 %>
|
|
|
|
<ul style="">
|
|
|
|
<% for membership in memberships %>
|
|
|
|
<li style="margin-left:-15px">
|
|
|
|
<b><%= membership.user.nick %></b> (<%=h membership.user.first_name + ' ' + membership.user.last_name %>)
|
|
|
|
| <%= link_to_remote 'entfernen',
|
2009-01-15 12:14:01 +01:00
|
|
|
:url => { :controller => '/memberships', :action => 'drop_member', :group_id => @group, :membership_id => membership },
|
2009-01-13 19:01:56 +01:00
|
|
|
:before => "Element.show('loader')",
|
|
|
|
:success => "Element.hide('loader')" %>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
<% else %>
|
|
|
|
<p><i><%= @group.name %> hat keine Mitglieder.</i></p>
|
|
|
|
<% end %>
|