module Web.View.ArchiveRecords.Show where import Web.Types import Generated.Types import IHP.Prelude import IHP.ViewPrelude data ShowView = ShowView { record :: !ArchiveRecord } instance View ShowView where html ShowView { .. } = [hsx|
Archive /

Archive Record

Subject Type
{record.subjectType}
Subject ID
{show record.subjectId}
Archived At
{show record.archivedAt}
Archived By
{record.archivedBy}
Reason
{record.reason}
{whenJust record.lineageRef \ref -> [hsx|
Lineage Reference
{ref}
|]}
{if record.subjectType == "Widget" then [hsx|
View Lineage →
|] else mempty}
|]