KB51 Add post links.
Change-Id: I429aadcc71212a9bfb90c812e108e55c51672ba9
diff --git a/src/main/resources/META-INF/resources/cms2/base.css b/src/main/resources/META-INF/resources/cms2/base.css
index d1b16f9..8811bb3 100644
--- a/src/main/resources/META-INF/resources/cms2/base.css
+++ b/src/main/resources/META-INF/resources/cms2/base.css
@@ -192,6 +192,10 @@
display: flex
}
+a.post-link {
+ text-decoration: none;
+}
+
#bookmark-submission textarea {
min-width: calc(100% - 12em);
}
diff --git a/src/main/resources/templates/benki/posts/postList.html b/src/main/resources/templates/benki/posts/postList.html
index 9b8f060..5f88757 100644
--- a/src/main/resources/templates/benki/posts/postList.html
+++ b/src/main/resources/templates/benki/posts/postList.html
@@ -59,8 +59,10 @@
<header>
<a href="{uri}"><h1 class="bookmark-title">{title}</h1></a>
<div class="bookmark-info">
- <time datetime="{date.htmlDateTime}">{date.humanDateTime}</time>
- <span class="bookmark-owner">{owner.firstName} {owner.lastName}</span>
+ <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>
</header>
@@ -72,8 +74,10 @@
<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>
+ <a class="post-link" href="/posts/{post.id}">
+ <time datetime="{date.htmlDateTime}">{date.humanDateTime}</time>
+ <span class="lazychat-message-owner">{owner.firstName} {owner.lastName}</span>
+ </a>
</div>
<div class="lazychat-message-controls">