osem-fcy/app/views/admin/conferences/_recent_registrations.html.haml

20 lines
665 B
Text
Raw Normal View History

- if recent_registrations && !recent_registrations.empty?
2014-06-16 13:51:43 +02:00
.table-responsive
%table.table
%thead
%tr
%th #
%th Public Name
%th Conference
%th Date
- recent_registrations.each_with_index do |registration, index|
%tbody
%tr
2014-08-06 22:23:10 +03:00
%td= index + 1
%td= link_to registration.name, admin_user_path(registration.user.id)
%td= link_to registration.conference.title, admin_conference_path(registration.conference.short_title)
%td= registration.created_at.strftime('%m/%d/%Y')
- else
%h5.text-warning.text-center
2014-06-23 19:07:50 +03:00
No registrations!