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|
{entry.summary}
{case mDecision of Nothing -> mempty Just dr -> [hsx| |]}