Rename 'ConferenceController' to 'ConferencesController', and 'ProposalController' to 'ProposalsController'
This commit is contained in:
parent
0b6550d060
commit
daf1f805bd
71 changed files with 225 additions and 191 deletions
25
app/views/admin/conferences/_recent_submissions.html.haml
Normal file
25
app/views/admin/conferences/_recent_submissions.html.haml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
- if recent_events && !recent_events.empty?
|
||||
.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
|
||||
%td= index + 1
|
||||
- if event.submitter
|
||||
%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)
|
||||
%td
|
||||
.span{'class'=>label_for(event.state)} #{event.state.humanize}
|
||||
- else
|
||||
%h5.text-warning.text-center
|
||||
No submissions!
|
||||
Loading…
Add table
Add a link
Reference in a new issue