Allow max_attendees to be nil

This commit is contained in:
Stella Rouzi 2016-05-15 14:01:30 +03:00
parent 65ee166570
commit 528243c8b9
7 changed files with 50 additions and 41 deletions

View file

@ -2,7 +2,11 @@
.col-md-12
.page-header
%h1
Registrations (#{@event_registrations.length}/#{@event.max_attendees})
Registrations
- if @event.max_attendees
(#{@event.events_registrations.length}/#{@event.max_attendees})
- else
(#{@event.events_registrations.length})
.text-muted
for
= @event.title