summaryrefslogtreecommitdiff
path: root/src/main/resources/templates/benki/lazychat/lazychatList.html
blob: b6446622d3454f542be9e2d71840bb8d4fa6fdbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{@java.util.List<eu.mulk.mulkcms2.benki.lazychat.LazychatMessage> posts}
{@java.lang.Boolean authenticated}
{@java.lang.Boolean hasPreviousPage}
{@java.lang.Boolean hasNextPage}
{@java.lang.Integer previousCursor}
{@java.lang.Integer nextCursor}
{@java.lang.Integer pageSize}

{#include base.html}

{#title}Benki Lazychat{/title}
{#siteSection}Lazychat{/siteSection}
{#lazychatClass}this-page{/lazychatClass}

{#head}{/head}

{#body}

<div class="paging">
  {#if hasPreviousPage}<a href="?i={previousCursor}&n={pageSize}" class="pure-button">⇠ previous page</a>{/if}
  <span class="filler"></span>
  {#if hasNextPage}<a href="?i={nextCursor}&n={pageSize}" class="pure-button">next page ⇢</a>{/if}
</div>

<section id="main-content">
  {#for post in posts}
    {#with post}
      <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}
</section>

<div class="paging">
  {#if hasPreviousPage}<a href="?i={previousCursor}&n={pageSize}" class="pure-button">⇠ previous page</a>{/if}
  <span class="filler"></span>
  {#if hasNextPage}<a href="?i={nextCursor}&n={pageSize}" class="pure-button">next page ⇢</a>{/if}
</div>

{/body}

{/include}