{t.text}
+{STATUS[t.status]}{t.status === "removed" && t.removedReason ? `: ${t.removedReason}` : ""}
+ +The House of Prayer is switched off. An Owner or Church admin can switch it on in Settings → Modules.
+ Back to the dashboard +{me.member.email}
{roles.length ? roles.map((r) => ROLE_NAMES[r]).join(", ") : "Member"}
+ {app.modules.includes("house-of-prayer") && ( + My prayer› + )} {roles.length > 0 && (Sign in to see and change your prayer slots.
+ Sign in +Your prayer slots can't be loaded right now. Please try again in a minute.
{data.prayedTotal} {data.prayedTotal === 1 ? "time" : "times"} marked as prayed (self-reported).
+ )} + {data.commitments.length ? ( +You haven't booked a prayer slot yet.
+ Find an open hour +The prayer wall can't be loaded right now. Please try again in a minute.
{t.text}
+{t.by} · {dayName(t.createdAt.slice(0, 10), { day: "numeric", month: "long" })}
+Answered prayers shared by the church will show here.
+ )} +Mark your slot as prayed. It's only counted, never ranked, and only you see your own number.
+Your recurring prayer slot is coming to an end. Renew it to keep praying at the same time for another year.
+Sign in to share what God has done.
+ Sign in +{when}
+{campaign.description}
} + {campaign.goal &&Aim: {campaign.goal}
} +{message.text}
} ++ {repeats(c)}{c.recurrence !== "once" && ` until ${dayName(c.endDate, { day: "numeric", month: "long", year: "numeric" })}`} +
+ {c.note &&{c.note}
} +Did you pray?
+To change a slot less than {data.rules.cancelHours} hours away, contact {contact}.
} +Ends {c.daysLeft <= 0 ? "today" : `in ${c.daysLeft} days`}.
+ +{dayName(day.date)}
+{span(slot.minute, day.slotMinutes)}
++ {slot.mine ? "You're praying" : slot.covered ? `${countLine(slot.count)} praying` : "Nobody yet"} +
+Tap an hour to see it, or pick an open one below.
+ )} +{live === "live" ? "Updates live as people book." : "Updating every 30 seconds."} Only counts are shown, never names.
+ + {booking !== null && ( +{coveredLine(day.covered, day.total, day.slotMinutes)} today.
+ {next ? ( +Your next slot: {relativeDay(next.date, day.today)}, {span(next.minute, next.length)}
+ ) : null} + {nextGap ? ( + + Next gap: {hhmm(nextGap.minute)}. Cover it + + ) : ( + Every hour left today is covered + )} +{t.text}
+{STATUS[t.status]}{t.status === "removed" && t.removedReason ? `: ${t.removedReason}` : ""}
+ +{state.text}
+ Go to the House of Prayer +{msg.text}
; +} + +const input = "mt-1 block min-h-10 w-full rounded-md border border-gray-300 px-2 text-sm"; + +/** The admin's House of Prayer (APP-1.0-PLAN §3, §10), in the Website's and Events' admin style (decision 9). */ +export function AdminPrayer({ today }: { today: string }) { + const [tab, setTab] = useStateOpen: {d.gaps.map(hhmm).join(", ")}
} +Counts only. Names are under "Who prays when", and every view of them is logged.
+Showing names is recorded in the access log, with your name and the day.
+| Time | Who | Contact | |
|---|---|---|---|
| {time(b.start, shown.timezone)}–{time(b.end, shown.timezone)} | +{b.member?.name ?? "—"}{b.recurrence === "once" ? "Once" : b.recurrence === "daily" ? "Every day" : "Every week"} | +{b.member?.email}{b.member?.phone && {b.member.phone}} | ++ |
Nobody has booked this day yet.
+ )} +For someone who asked the prayer team to book for them. They must have signed in to the App once.
+ {!member ? ( + <> + + {found.length > 0 && ( +Loading…
{c.title}
+{dayName(c.startDate, { day: "numeric", month: "short", year: "numeric" })} – {dayName(c.endDate, { day: "numeric", month: "short", year: "numeric" })}{c.startDate <= today && c.endDate >= today ? " · running now" : ""}
+No campaigns yet. A time-bound focus, such as 21 days of prayer before a conference, rallies the church.
} +{t.text}
+From {t.author ?? "a deleted account"} · shown as {t.showName ? "their first name" : "Anonymous"}{t.removedReason ? ` · not shared: ${t.removedReason}` : ""}
+{status === "pending" ? "Nothing waiting." : "None."}
} +