From 3e318a1fe816afbb432a49bd6d26ada8715f159f Mon Sep 17 00:00:00 2001 From: Ryan Petschek Date: Sat, 16 Apr 2016 23:19:08 -0400 Subject: [PATCH] Replace capacity with total attendees on attendance sheets --- .../components/admin/session-display.html | 42 +++---------------- 1 file changed, 5 insertions(+), 37 deletions(-) diff --git a/World Perspectives/public/components/admin/session-display.html b/World Perspectives/public/components/admin/session-display.html index 78dbb76..4729305 100644 --- a/World Perspectives/public/components/admin/session-display.html +++ b/World Perspectives/public/components/admin/session-display.html @@ -110,42 +110,7 @@ -

{{session.title.formatted}} @@ -163,8 +128,8 @@

[[session.moderator.name]]
- Capacity: - [[session.capacity.filled]] of [[session.capacity.total]] + Total attendees: + [[_computeAttendees(attendees)]]

@@ -236,6 +201,9 @@

return "Presenters"; } }, + _computeAttendees: function (attendees) { + return attendees.faculty.length + attendees.students.length; + }, handleError: function (e) { var errorMessage = e.target.lastError.error.message || "An error occurred!"; console.error(errorMessage);