Skip to content

Commit

Permalink
feat: added search bar on category pages to enable searching posts by…
Browse files Browse the repository at this point in the history
… topic
  • Loading branch information
cindywgg committed Feb 11, 2025
1 parent 59bb373 commit 1c0e92f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Binary file added dump.rdb
Binary file not shown.
10 changes: 10 additions & 0 deletions nodebb-theme-harmony/templates/partials/topic-list-bar.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,16 @@
</a>
</div>

<!-- Search Bar -->
<div class="search">
<div class="input-group">
<input class="form-control form-control-sm" id="search-posts" type="text" placeholder="[[global:search]]"/>
<button class="btn btn-primary btn-sm" type="button" aria-label="[[global:search]]">
<i component="user/search/icon" class="fa fa-search"></i>
</button>
</div>
</div>

<div class="d-flex gap-1 align-items-center">
{{{ if template.category }}}
{{{ if privileges.topics:create }}}
Expand Down

0 comments on commit 1c0e92f

Please sign in to comment.