Skip to content

Commit

Permalink
Merge pull request #49 from edemenkov/Display_ReadTime
Browse files Browse the repository at this point in the history
Improve Reading Time Display on post views
  • Loading branch information
jdufitum authored Oct 20, 2024
2 parents 6b7470f + 6ea7389 commit 8962b97
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 22 deletions.
44 changes: 24 additions & 20 deletions node_modules/nodebb-theme-harmony/templates/partials/topic/post.tpl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions src/views/post-queue.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@
{{{ end }}}
<strong>{{{ if posts.data.tid }}}[[post-queue:reply]]{{{ else }}}[[post-queue:topic]]{{{ end }}}</strong>
<span class="timeago float-end" title={posts.data.timestampISO}></span>
<!-- Add the reading time -->
<span id="reading-time-{posts.data.id}" class="text-muted"></span>
</div>
<div class="card-body">
<div class="row">
Expand Down Expand Up @@ -129,11 +131,11 @@
<button class="btn btn-danger btn-sm" data-action="reject"><i class="fa fa-fw fa-times"></i> [[post-queue:remove]]</button>
{{{ end }}}
</div>
</div>
</div>[email protected]
</div>
{{{ end }}}
</div>
<!-- IMPORT partials/paginator.tpl -->
</div>
</div>
</div>

0 comments on commit 8962b97

Please sign in to comment.