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

26 lines
912 B
Text
Raw Normal View History

- if recent_events && !recent_events.empty?
2014-06-16 13:51:43 +02:00
.table-responsive
%table.table
%thead
%tr
%th #
%th Submitter
%th Title
%th Conference
%th Status
- recent_events.each_with_index do |event, index|
%tbody
%tr
2014-08-06 22:23:10 +03:00
%td= index + 1
- if event.submitter
2014-08-06 22:23:10 +03:00
%td= link_to event.submitter.name, admin_user_path(event.submitter.id)
- else
%td Unknown Submitter
%td= link_to event.title, admin_conference_program_event_path(event.program.conference.short_title, event)
%td= link_to event.program.conference.title, admin_conference_path(event.program.conference.short_title)
2014-06-16 13:51:43 +02:00
%td
.span{ 'class' => label_for(event.state) } #{event.state.humanize}
- else
%h5.text-warning.text-center
2014-06-23 19:07:50 +03:00
No submissions!