osem-fcy/app/views/admin/users/_submissions.html.haml
2017-04-28 10:16:13 +00:00

23 lines
845 B
Text

.row
.col-md-12.page-header
%h2
Submissions (#{@user.events.length}) for #{@user.name}
.col-md-12
.well
%table.table.table-bordered.table-striped.table-hover.datatable#submissions
%thead
%th ID
%th Conference
%th Title
%th State
%th Type
%th Created At
%tbody
- @user.events.each do |event|
%tr
%td= event.id
%td= link_to event.program.conference.short_title, admin_conference_path(event.program.conference.short_title)
%td= link_to event.title, admin_conference_program_event_path(event.program.conference.short_title, event)
%td= event.state
%td= "#{event.event_type.title} (#{show_time(event.event_type.length)})"
%td= event.created_at