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