 
 Template.schedule.activeTeamName = ->
   Session.get('active-team')?.teamName
-
-# Template.schedule.activeShiftName = ->
-#   Session.get('active-shift').shiftName
 
 Template.schedule.showingAllDays = ->
   not Session.get('active-day')

      _.contains _.pluck(keen, 'userId'), reg.userId
    # remove duplicates that have already been confirmed (in the schedule)
    shift.keen = _.reject keen, (reg) ->
      _.contains _.pluck(schedule, 'userId'), reg.userId

  shifts.sort (a, b) ->
    moment(a.startTime).toDate() - moment(b.startTime).toDate()

  activeDay = Session.get('active-day')
  tournament = Session.get('active-tournament')
  tId = tournament._id
  schedule = Schedule.find(tournamentId: tId).fetch()
  registrants = Registrants.find(tournamentId: tId).fetch()
  shifts = (shift for shift in tournament.shifts when moment(shift.day).toISOString() is moment(activeDay).toISOString() and shift[idType] is id)
