From bf9199b466e693086a1782c2b7e628adad352118 Mon Sep 17 00:00:00 2001 From: fr33domlover Date: Sat, 25 May 2019 19:35:31 +0000 Subject: [PATCH] Forgot to commit new templates --- templates/person/notifications.hamlet | 29 +++++++++++++++++++++++++++ templates/person/outbox.hamlet | 27 +++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 templates/person/notifications.hamlet create mode 100644 templates/person/outbox.hamlet diff --git a/templates/person/notifications.hamlet b/templates/person/notifications.hamlet new file mode 100644 index 0000000..aa8f9d2 --- /dev/null +++ b/templates/person/notifications.hamlet @@ -0,0 +1,29 @@ +$# This file is part of Vervis. +$# +$# Written in 2019 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 +$# . + +
+ ^{widgetAll} + + +
+ $forall (activity, widget, enctype) <- notifications +
+      $case activity
+        $of Left doc
+          #{AEP.encodePrettyToLazyText doc}
+        $of Right obj
+          #{TLB.toLazyText $ encodePrettyToTextBuilder obj}
+    
+      ^{widget}
+      
diff --git a/templates/person/outbox.hamlet b/templates/person/outbox.hamlet
new file mode 100644
index 0000000..d9a4fa3
--- /dev/null
+++ b/templates/person/outbox.hamlet
@@ -0,0 +1,27 @@
+$# This file is part of Vervis.
+$#
+$# Written in 2019 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
+$# .
+
+

+ This is your personal outbox. It's basically a list of the activities you've + published. It roughly corresponds to the list of toots you see on people's + profile page on Mastodon. + +^{pageNav} + +

+ $forall Entity _ (OutboxItem _ (PersistJSON doc) published) <- items +
#{showTime published} +
#{AEP.encodePrettyToLazyText doc}
+
+^{pageNav}