From 64aae37b4fe8392c593c46f5224b732ad644bbeb Mon Sep 17 00:00:00 2001 From: Pere Lev Date: Mon, 26 Jun 2023 23:50:33 +0300 Subject: [PATCH] UI: Minimal HTML page for Project --- src/Vervis/Handler/Project.hs | 2 +- templates/project/one.hamlet | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 templates/project/one.hamlet diff --git a/src/Vervis/Handler/Project.hs b/src/Vervis/Handler/Project.hs index 146121b..cd965ac 100644 --- a/src/Vervis/Handler/Project.hs +++ b/src/Vervis/Handler/Project.hs @@ -149,7 +149,7 @@ getProjectR projectHash = do , AP.projectParents = [] , AP.projectComponents = [] } - provideHtmlAndAP projectAP $ redirectToPrettyJSON here + provideHtmlAndAP projectAP $(widgetFile "project/one") where here = ProjectR projectHash diff --git a/templates/project/one.hamlet b/templates/project/one.hamlet new file mode 100644 index 0000000..cbe6aea --- /dev/null +++ b/templates/project/one.hamlet @@ -0,0 +1,15 @@ +$# This file is part of Vervis. +$# +$# Written in 2023 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 +$# . + +^{projectNavW (Entity projectID project) actor}