From d189e25fc09f252fa56cca5195d15aa2487192cc Mon Sep 17 00:00:00 2001 From: teddit Date: Fri, 18 Dec 2020 18:54:05 +0100 Subject: [PATCH] show number of comments in post view --- dist/css/styles.css | 5 +++++ views/post.pug | 2 ++ 2 files changed, 7 insertions(+) diff --git a/dist/css/styles.css b/dist/css/styles.css index 08554a7..043de90 100644 --- a/dist/css/styles.css +++ b/dist/css/styles.css @@ -702,6 +702,11 @@ input[type="submit"]:hover, float: left; width: 100%; } +#post .comments-info { + float: left; + width: calc(100% - 30px); + margin: 10px 0px 10px 30px; +} #post .comment .meta p.stickied { color: green; } diff --git a/views/post.pug b/views/post.pug index 9ad4b17..3eea48b 100644 --- a/views/post.pug +++ b/views/post.pug @@ -134,5 +134,7 @@ html .infobar p you are viewing a single comment's thread. a(href="" + post_url + "") view the rest of the comments → + .comments-info + p all #{post.num_comments} comments != comments