* Fix admin sub menus * Show email address in people#index * Add User Area link in navbar * Smaller textareas on proposal#new so you don't have to scroll * Counting of registrations, users and people * Use datatables for users and people * Show event type on admin/events#show
32 lines
664 B
Text
32 lines
664 B
Text
%h2
|
|
People
|
|
- if @people
|
|
= "(#{@people.length})"
|
|
%table.table.table-striped.table-bordered.table-hover#people
|
|
%thead
|
|
%th
|
|
%b Email
|
|
%th
|
|
%b Last Name
|
|
%th
|
|
%b First Name
|
|
%th
|
|
%b Public Name
|
|
%th
|
|
%b # of Conference Registrations
|
|
%th
|
|
- @people.each do |person|
|
|
%tr
|
|
%td= person.email
|
|
%td= person.last_name
|
|
%td= person.first_name
|
|
%td= person.public_name
|
|
%td= person.registrations.count
|
|
%td= link_to "View", admin_person_path(person)
|
|
|
|
:javascript
|
|
$(document).ready(function() {
|
|
$('#people').dataTable( {
|
|
sPaginationType: "full_numbers"
|
|
} );
|
|
} );
|