summaryrefslogtreecommitdiff
path: root/src/main/resources/templates/benki
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-04-19 19:38:49 +0200
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-04-19 19:56:20 +0200
commitbbac0c7d90986f95e93a473c7228021ab726e464 (patch)
tree6a5807e3c026017ad1f8e37f492b415a65ee3f31 /src/main/resources/templates/benki
parent3c4911e9a87702fcf199d410a5502775b02e9947 (diff)
KB53 Support bookmark edition.
Change-Id: Ieacbb5c448b9afa4bc9524167e0c73618de6db48
Diffstat (limited to 'src/main/resources/templates/benki')
-rw-r--r--src/main/resources/templates/benki/posts/postList.html21
1 files changed, 19 insertions, 2 deletions
diff --git a/src/main/resources/templates/benki/posts/postList.html b/src/main/resources/templates/benki/posts/postList.html
index 5f88757..bc479f4 100644
--- a/src/main/resources/templates/benki/posts/postList.html
+++ b/src/main/resources/templates/benki/posts/postList.html
@@ -57,15 +57,32 @@
{#if post.isBookmark}
<article class="bookmark">
<header>
- <a href="{uri}"><h1 class="bookmark-title">{title}</h1></a>
<div class="bookmark-info">
<a class="post-link" href="/posts/{post.id}">
<time datetime="{date.htmlDateTime}">{date.humanDateTime}</time>
<span class="bookmark-owner">{owner.firstName} {owner.lastName}</span>
</a>
</div>
+
+ <div class="bookmark-controls">
+ {#if showBookmarkForm}
+ <button class="pure-button bookmark-edit-button">Edit</button>
+ {/if}
+ </div>
</header>
+ <section class="bookmark-editor post-editor">
+ {#if showBookmarkForm}
+ <elix-expandable-panel class="bookmark-editor-pane editor-pane">
+ <mlk-bookmark-submission-form edited-id="{post.id}"></mlk-bookmark-submission-form>
+ </elix-expandable-panel>
+ {/if}
+ </section>
+
+ <section class="bookmark-title-section">
+ <a href="{uri}" class="bookmark-title"><h1 class="bookmark-title">⇢&nbsp;{title}</h1></a>
+ </section>
+
<section class="bookmark-description">
{descriptionHtml.raw}
</section>
@@ -87,7 +104,7 @@
</div>
</header>
- <section class="lazychat-editor">
+ <section class="lazychat-editor post-editor">
{#if showLazychatForm}
<elix-expandable-panel class="lazychat-editor-pane editor-pane">
<mlk-lazychat-submission-form edited-id="{post.id}"></mlk-lazychat-submission-form>