Count events, users, people and use datatables for them.

Show event types.
Add proposal#show.
This commit is contained in:
Henne Vogelsang 2013-05-07 13:22:45 +02:00 committed by Henne Vogelsang
parent a557f3750e
commit 200a701861
8 changed files with 131 additions and 7 deletions

View file

@ -1,5 +1,11 @@
%table.table.table-striped.table-bordered.table-hover
%h2
People
- if @people
= "(#{@people.length})"
%table.table.table-striped.table-bordered.table-hover#people
%thead
%th
%b Email
%th
%b Last Name
%th
@ -11,8 +17,16 @@
%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)
%td= link_to "View", admin_person_path(person)
:javascript
$(document).ready(function() {
$('#people').dataTable( {
sPaginationType: "full_numbers"
} );
} );