Implements recent items tabs and top submitter for dashboard
This commit is contained in:
parent
25a1c116fd
commit
28293cb4c4
11 changed files with 186 additions and 1 deletions
18
app/views/admin/conference/_recent_registrations.html.haml
Normal file
18
app/views/admin/conference/_recent_registrations.html.haml
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
- if recent_registrations && !recent_registrations.empty?
|
||||
%table.table
|
||||
%thead
|
||||
%tr
|
||||
%th #
|
||||
%th Public Name
|
||||
%th Conference
|
||||
%th Date
|
||||
- recent_registrations.each_with_index do |registration, index|
|
||||
%tbody
|
||||
%tr
|
||||
%td #{index + 1}
|
||||
%td #{registration.public_name}
|
||||
%td #{registration.conference.title}
|
||||
%td #{registration.created_at.strftime('%m/%d/%Y')}
|
||||
- else
|
||||
%h5.text-warning.text-center
|
||||
No registrations!
|
||||
Loading…
Add table
Add a link
Reference in a new issue