Show how many people has registered to events in the list and view event in admin page. fix #958

This commit is contained in:
David Sedeño 2016-04-14 22:41:13 +02:00
parent ea76d93ecf
commit ee27a080ad
3 changed files with 22 additions and 7 deletions

View file

@ -94,13 +94,23 @@
off_color: 'warning',
on_text: 'Yes',
off_text: 'No' }
- if @event.require_registration
%tr
%td
%b Registrations
%td
= @event.registrations.size
- if !@event.room.nil?
%tr
%td
%b Room
%td
= @event.room.name
%tr
%td
%b Room size
%td
= @event.room.size
- if !@event.start_time.nil?
%tr
%td