summaryrefslogtreecommitdiff
path: root/src/main/resources
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-02-09 20:02:20 +0100
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-02-09 20:02:20 +0100
commit94b5e7b4c85a4bde4848bf3d85c1adc7cd73acc6 (patch)
tree4d6ddb89267a18bf935acc195fe0ca1922835ab5 /src/main/resources
parent62416de64d7fa2dda4dd12777a7698a7a5d0c199 (diff)
Lafargue: Implement basic viewer.
Change-Id: If24f58aa069a14139454708d02ac40109c2181ef
Diffstat (limited to 'src/main/resources')
-rw-r--r--src/main/resources/META-INF/resources/cms2/base.css14
-rw-r--r--src/main/resources/templates/benki/lazychat/lazychatList.html32
2 files changed, 46 insertions, 0 deletions
diff --git a/src/main/resources/META-INF/resources/cms2/base.css b/src/main/resources/META-INF/resources/cms2/base.css
index bb5d200..126be6d 100644
--- a/src/main/resources/META-INF/resources/cms2/base.css
+++ b/src/main/resources/META-INF/resources/cms2/base.css
@@ -145,3 +145,17 @@ article.bookmark {
padding: 0.3em;
background: #fee;
}
+
+.lazychat-message-info {
+ font-style: italic;
+ font-size: smaller;
+ margin: 0;
+ padding: 0;
+}
+
+article.lazychat-message {
+ margin: 0.5em 0;
+ border: 1px solid lightseagreen;
+ padding: 0.3em;
+ background: #efe;
+}
diff --git a/src/main/resources/templates/benki/lazychat/lazychatList.html b/src/main/resources/templates/benki/lazychat/lazychatList.html
new file mode 100644
index 0000000..ecac7a7
--- /dev/null
+++ b/src/main/resources/templates/benki/lazychat/lazychatList.html
@@ -0,0 +1,32 @@
+{@java.util.List<eu.mulk.mulkcms2.benki.lazychat.LazychatMessage> lazychatMessages}
+
+{#include base.html}
+
+{#title}Benki Lazychat{/title}
+{#siteSection}Lazychat{/siteSection}
+{#lazychatClass}this-page{/lazychatClass}
+
+{#head}{/head}
+
+{#body}
+
+{#for lazychatMessage in lazychatMessages}
+ {#with lazychatMessage}
+ <article class="lazychat-message">
+ <header>
+ <div class="lazychat-message-info">
+ <time datetime="{date.htmlDateTime}">{date.humanDateTime}</time>
+ <span class="lazychat-message-owner">{owner.firstName} {owner.lastName}</span>
+ </div>
+ </header>
+
+ <section class="lazychat-message-content">
+ {contentHtml.raw}
+ </section>
+ </article>
+ {/with}
+{/for}
+
+{/body}
+
+{/include}