- Shifts show on the public list when this event is public, the shift is not cancelled, and it has not ended. Repeating shifts add dates for the next three months. Add weekly shifts fills those dates. Shifts already on the schedule stay as they are, including cancelled ones. + Shifts show on the public list when this event is public and the shift is not cancelled. A shift that has already ended stays on today's card, grayed out, until midnight. Then that day leaves the list. Repeating shifts add dates for the next three months. Add weekly shifts fills those dates. Shifts already on the schedule stay as they are, including cancelled ones.
In progress
: null} +{shift.inProgress ? 'In progress' : ''}
+ Ended +
+ ) : shift.full ? (
Full
Not accepting more signups
@@ -860,14 +864,16 @@ function CalendarShift(props: { config: AppConfig; shift: PublicShift }) {
const closed = shift.full || shift.cancelled || shift.ended;
const action = closed ? 'View shift' : 'Sign up';
return (
-
+
{shift.when.startLabel} {shift.role}
+ {shift.ended ? ' · Ended' : ''}
{'. '}
{action} for {shift.role} on {shift.when.dateLabel}, {shift.when.startLabel} to {shift.when.endLabel}{' '}
{shift.when.abbreviation}. {spotsSentence(shift)}
+ {shift.ended ? ' Ended.' : ''}
{shift.inProgress ? ' In progress.' : ''}
{shift.volunteers.length > 0 ? ` Volunteers: ${shift.volunteers.join(', ')}.` : ' No one signed up yet.'}
@@ -880,6 +886,7 @@ function CalendarShift(props: { config: AppConfig; shift: PublicShift }) {
{shift.when.sameDay ? null : }
{shift.when.abbreviation}
+ {shift.ended ? Ended : null}
{shift.inProgress ? In progress : null}