module Web.View.CollectiveProposals.Show where import Web.View.Prelude import Web.View.CollectiveProposals.Index (consensusBadge) data ShowView = ShowView { proposal :: !CollectiveProposal , agentContributions :: ![(CollectiveProposalContribution, Text)] -- ^ (contribution, agent name) } instance View ShowView where html ShowView { .. } = [hsx|
{proposal.taskType}
{s}
|]} {case proposal.finalContent of Nothing -> mempty Just fc -> [hsx|{show fc}
{show contrib.content}