Paste server written in Haskell. Fork of Hpaste, fully freedom and privacy respecting and generally improved. At the time of writing there's an instance at <http://paste.rel4tion.org>.
Clone
HTTPS:
git clone https://vervis.peers.community/repos/aoqmo
SSH:
git clone USERNAME@vervis.peers.community:aoqmo
Branches
Tags
Annotate.hs
{-# OPTIONS -Wall -fno-warn-name-shadowing #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
-- | Annotate paste view.
module Hpaste.View.Annotate
(page)
where
import Hpaste.Types
import Hpaste.View.Html
import Hpaste.View.Layout
import Data.Monoid.Operator ((++))
import Prelude hiding ((++))
import Text.Blaze.Html5 as H hiding (map)
import Data.Text.Lazy
-- | Render the create annotate paste page.
page :: Paste -> Html -> Html
page Paste{..} form =
layoutPage $ Page {
pageTitle = "Annotate: " ++ pasteTitle
, pageBody = lightSection ("Annotate: " ++ fromStrict pasteTitle) form
, pageName = "annotate"
}
|