diff options
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2020-04-18 15:55:44 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2020-04-18 15:55:54 +0200 |
commit | 695427b3c99fad50cb6386c0111dd2f0bb0ca9fe (patch) | |
tree | 02e69f31fd1cd9b54e3ef48532bae83e0c725c2d | |
parent | 09914e3fe1fbb3cd6c5227c0ea93b77cae43ca05 (diff) |
KB51 Add post links.
Change-Id: I429aadcc71212a9bfb90c812e108e55c51672ba9
-rw-r--r-- | src/main/resources/META-INF/resources/cms2/base.css | 4 | ||||
-rw-r--r-- | src/main/resources/templates/benki/posts/postList.html | 12 |
2 files changed, 12 insertions, 4 deletions
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 @@ article.lazychat-message > header { 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"> |