Allow max_attendees to be nil
This commit is contained in:
parent
65ee166570
commit
528243c8b9
7 changed files with 50 additions and 41 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue