From 6d29553844e9262a87407e1db827de23ae2ad034 Mon Sep 17 00:00:00 2001 From: fr33domlover Date: Wed, 18 May 2016 10:26:19 +0000 Subject: [PATCH] Use discussion widget in ticket template --- src/Vervis/Handler/Ticket.hs | 1 + templates/ticket/one.hamlet | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/Vervis/Handler/Ticket.hs b/src/Vervis/Handler/Ticket.hs index 901c295..7c6bd9e 100644 --- a/src/Vervis/Handler/Ticket.hs +++ b/src/Vervis/Handler/Ticket.hs @@ -53,6 +53,7 @@ import Vervis.MediaType (MediaType (Markdown)) import Vervis.Model import Vervis.Render (renderSourceT) import Vervis.Settings (widgetFile) +import Vervis.Widget.Discussion (discussionW) getTicketsR :: Text -> Text -> Handler Html getTicketsR shar proj = do diff --git a/templates/ticket/one.hamlet b/templates/ticket/one.hamlet index 675a900..f205ce9 100644 --- a/templates/ticket/one.hamlet +++ b/templates/ticket/one.hamlet @@ -34,3 +34,7 @@ $# .

#{ticketTitle ticket} ^{desc} + +

Discussion + +^{discussionW $ ticketDiscuss ticket}