$newline never $# SPDX-FileCopyrightText: 2022 Gregor Kleen ,Sarah Vaupel $# $# SPDX-License-Identifier: AGPL-3.0-or-later $maybe WorkflowCurrentState{..} <- workflowState
$maybe archived <- wcsArchived $if now < archived ^{notification NotificationBroad =<< messageWidget Warning (archivationScheduled archived)}

_{MsgWorkflowWorkflowWorkflowStateHeading}
_{MsgWorkflowWorkflowWorkflowStateStateLabel}
$maybe (stLbl, stFin) <- wcsState #{stLbl} $maybe icn <- stFin  #{icon icn} $nothing _{MsgWorkflowWorkflowWorkflowStateStateHidden} $maybe archived <- wcsArchived $if now >= archived
_{MsgWorkflowWorkflowWorkflowStateArchivedLabel} # ^{messageTooltip =<< messageI Info MsgWorkflowWorkflowWorkflowArchivationInfo}
^{formatTimeW SelFormatDateTime archived} $forall msg <- wcsMessages ^{notification NotificationBroad msg} $if not (onull wcsPayload)