foodsoft/app/views/shared/memberships/_current_members.rhtml

22 lines
810 B
Text
Raw Normal View History

<% 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">
2013-09-20 22:40:13 +02:00
<%= show_user membership.user, full: true, markup: true %>
2013-02-08 19:16:06 +01:00
| <%= link_to_remote t('.drop'),
2009-02-02 17:28:59 +01:00
:url => { :controller => '/memberships', :action => 'drop_member', :id => @group, :membership_id => membership },
:before => "Element.show('loader')",
:success => "Element.hide('loader')" %>
</li>
<% end %>
</ul>
<% else %>
2013-02-08 19:16:06 +01:00
<p><i><%= t('.no_members', group: @group.name) %></i></p>
<% end %>