module Web.View.InstitutionalKnowledge.Show where import Web.View.Prelude data ShowView = ShowView { entry :: !InstitutionalKnowledgeEntry , hub :: !Hub , mDecision :: !(Maybe DecisionRecord) } instance View ShowView where html ShowView { .. } = [hsx|
← Knowledge Base
{hub.name} {show entry.createdAt}

{entry.summary}

{case mDecision of Nothing -> mempty Just dr -> [hsx|

Source Decision

{dr.title} ({dr.outcome})
|]}
|]