Sha256: 5664e557e89f8ff994424ab3592d18a3c62cd4948830303bb7646153499446b8

Contents?: true

Size: 791 Bytes

Versions: 17

Compression:

Stored size: 791 Bytes

Contents

<!--
<h3>Attendees/Participants</h3>

<% 
#if @event.attendees.empty? 
%>
  <p><em>No attendees for this event.</em></p>
<% 
#else
 %>
    
  form stub

  <% @event.participants.group_by(&:class).map do |type, participants| %>
    <h4><%= link_to(pluralize(participants.size, type.to_s), polymorphic_path(type)) %></h4>
    <ol>
    <% participants.each do |participant| %>
      <% name_attr = participant.attribute_names.detect{|m_attr| m_attr =~ /name/} %>
      <% if participant.respond_to?(:name) %>
      <li><%= link_to(participant.send(name_attr), polymorphic_path(participant)) %></li>
      <% elsif name_attr %>
      <li><%= link_to(participant.name, polymorphic_path(participant)) %></li>
      <% end %>
    <% end %>
    </ol>
  <% end %>
  
  form stub end
<% 
#end
 %>
-->

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
event_calendar_engine-0.2.15 app/views/attendees/_add_attendees.html.erb
event_calendar_engine-0.2.14 app/views/attendees/_add_attendees.html.erb
event_calendar_engine-0.2.13 app/views/attendees/_add_attendees.html.erb
event_calendar_engine-0.2.11 app/views/attendees/_add_attendees.html.erb
event_calendar_engine-0.2.10 app/views/attendees/_add_attendees.html.erb
event_calendar_engine-0.2.8 app/views/attendees/_add_attendees.html.erb
event_calendar_engine-0.2.7 app/views/attendees/_add_attendees.html.erb
event_calendar_engine-0.2.6 app/views/attendees/_add_attendees.html.erb
event_calendar_engine-0.2.5 app/views/attendees/_add_attendees.html.erb
event_calendar_engine-0.2.4 app/views/attendees/_add_attendees.html.erb
event_calendar_engine-0.2.3 app/views/attendees/_add_attendees.html.erb
event_calendar_engine-0.2.2 app/views/attendees/_add_attendees.html.erb
event_calendar_engine-0.2.1 app/views/attendees/_add_attendees.html.erb
event_calendar_engine-0.2.0 app/views/attendees/_add_attendees.html.erb
event_calendar_engine-0.1.11 app/views/attendees/_add_attendees.html.erb
event_calendar_engine-0.1.10 app/views/attendees/_add_attendees.html.erb
event_calendar_engine-0.1.9 app/views/attendees/_add_attendees.html.erb