From ad9629d3f33ee70f8debb65e97864358e78cea2e Mon Sep 17 00:00:00 2001 From: fr33domlover Date: Wed, 18 May 2016 10:10:07 +0000 Subject: [PATCH] Dummy discussion widget --- src/Vervis/Widget/Discussion.hs | 29 +++++++++++++++++++++++++ templates/discussion/widget/tree.hamlet | 15 +++++++++++++ vervis.cabal | 1 + 3 files changed, 45 insertions(+) create mode 100644 src/Vervis/Widget/Discussion.hs create mode 100644 templates/discussion/widget/tree.hamlet diff --git a/src/Vervis/Widget/Discussion.hs b/src/Vervis/Widget/Discussion.hs new file mode 100644 index 0000000..8267699 --- /dev/null +++ b/src/Vervis/Widget/Discussion.hs @@ -0,0 +1,29 @@ +{- This file is part of Vervis. + - + - Written in 2016 by fr33domlover . + - + - ♡ Copying is an act of love. Please copy, reuse and share. + - + - The author(s) have dedicated all copyright and related and neighboring + - rights to this software to the public domain worldwide. This software is + - distributed without any warranty. + - + - You should have received a copy of the CC0 Public Domain Dedication along + - with this software. If not, see + - . + -} + +module Vervis.Widget.Discussion + ( discussionW + ) +where + +import Prelude + +import Vervis.Foundation +import Vervis.Model (DiscussionId) +import Vervis.Settings (widgetFile) + +discussionW :: DiscussionId -> Widget +discussionW did = do + $(widgetFile "discussion/widget/tree") diff --git a/templates/discussion/widget/tree.hamlet b/templates/discussion/widget/tree.hamlet new file mode 100644 index 0000000..6285537 --- /dev/null +++ b/templates/discussion/widget/tree.hamlet @@ -0,0 +1,15 @@ +$# This file is part of Vervis. +$# +$# Written in 2016 by fr33domlover . +$# +$# ♡ Copying is an act of love. Please copy, reuse and share. +$# +$# The author(s) have dedicated all copyright and related and neighboring +$# rights to this software to the public domain worldwide. This software is +$# distributed without any warranty. +$# +$# You should have received a copy of the CC0 Public Domain Dedication along +$# with this software. If not, see +$# . + +[[[ [TODO] the discussion system is still being developed ]]] diff --git a/vervis.cabal b/vervis.cabal index 0b6937e..5b18e18 100644 --- a/vervis.cabal +++ b/vervis.cabal @@ -108,6 +108,7 @@ library Vervis.Ssh Vervis.Style Vervis.Widget + Vervis.Widget.Discussion Vervis.Widget.Repo -- other-modules: default-extensions: TemplateHaskell