From fe85806dca8b400bf327cc96b2388bcb069e402e Mon Sep 17 00:00:00 2001 From: edemenkov Date: Tue, 15 Oct 2024 19:13:08 +0300 Subject: [PATCH] Done changes to front to display read time --- .../templates/partials/topic/post.tpl | 134 ++++++++++++++++++ src/views/post-queue.tpl | 6 +- 2 files changed, 138 insertions(+), 2 deletions(-) create mode 100644 node_modules/nodebb-theme-harmony/templates/partials/topic/post.tpl diff --git a/node_modules/nodebb-theme-harmony/templates/partials/topic/post.tpl b/node_modules/nodebb-theme-harmony/templates/partials/topic/post.tpl new file mode 100644 index 0000000000..260024d997 --- /dev/null +++ b/node_modules/nodebb-theme-harmony/templates/partials/topic/post.tpl @@ -0,0 +1,134 @@ +{{{ if (!./index && widgets.mainpost-header.length) }}} +
+ {{{ each widgets.mainpost-header }}} + {widgets.mainpost-header.html} + {{{ end }}} +
+{{{ end }}} +
+ +
+ + +
+ {posts.content} +
+ +
+
+ +
+ {{{ if posts.user.signature }}} +
{posts.user.signature}
+ {{{ end }}} + + + +
+ +
+ + + + + {{{ if !reputation:disabled }}} +
+ + + + + + + {posts.votes} + + {{{ if !downvote:disabled }}} + + + + {{{ end }}} +
+ {{{ end }}} + + +
+
+{{{ if (!./index && widgets.mainpost-footer.length) }}} +
+ {{{ each widgets.mainpost-footer }}} + {widgets.mainpost-footer.html} + {{{ end }}} +
+{{{ end }}} diff --git a/src/views/post-queue.tpl b/src/views/post-queue.tpl index 1f84257c7d..ed115616a3 100644 --- a/src/views/post-queue.tpl +++ b/src/views/post-queue.tpl @@ -70,6 +70,8 @@ {{{ end }}} {{{ if posts.data.tid }}}[[post-queue:reply]]{{{ else }}}[[post-queue:topic]]{{{ end }}} + +
@@ -128,11 +130,11 @@ {{{ end }}}
-
+ ekaterina@basira.life {{{ end }}} - \ No newline at end of file +