nodebb-theme-harmony 1.0.0-beta.3 → 1.0.0-beta.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/languages/en-GB/harmony.json +1 -0
  2. package/library.js +10 -0
  3. package/package.json +1 -1
  4. package/public/harmony.js +50 -23
  5. package/scss/chats.scss +7 -2
  6. package/scss/common.scss +36 -4
  7. package/scss/harmony.scss +2 -0
  8. package/scss/mixins.scss +7 -3
  9. package/scss/modules/composer.scss +0 -4
  10. package/scss/modules/cover.scss +1 -11
  11. package/scss/modules/paginator.scss +24 -0
  12. package/scss/overrides.scss +2 -0
  13. package/scss/search.scss +8 -0
  14. package/scss/sidebar.scss +27 -2
  15. package/scss/topic.scss +22 -12
  16. package/templates/account/blocks.tpl +1 -1
  17. package/templates/account/categories.tpl +1 -2
  18. package/templates/account/consent.tpl +63 -1
  19. package/templates/account/edit/password.tpl +1 -1
  20. package/templates/account/edit/username.tpl +1 -1
  21. package/templates/account/edit.tpl +2 -2
  22. package/templates/account/followers.tpl +1 -1
  23. package/templates/account/following.tpl +1 -1
  24. package/templates/account/groups.tpl +1 -1
  25. package/templates/account/info.tpl +2 -19
  26. package/templates/account/posts.tpl +1 -1
  27. package/templates/account/profile.tpl +2 -2
  28. package/templates/account/sessions.tpl +2 -19
  29. package/templates/account/settings.tpl +1 -1
  30. package/templates/account/theme.tpl +1 -1
  31. package/templates/account/topics.tpl +1 -1
  32. package/templates/account/uploads.tpl +1 -1
  33. package/templates/categories.tpl +1 -1
  34. package/templates/category.tpl +10 -11
  35. package/templates/chats.tpl +1 -1
  36. package/templates/flags/detail.tpl +0 -1
  37. package/templates/flags/list.tpl +1 -1
  38. package/templates/groups/details.tpl +20 -17
  39. package/templates/groups/members.tpl +0 -2
  40. package/templates/partials/account/header.tpl +10 -17
  41. package/templates/partials/account/session-list.tpl +18 -0
  42. package/templates/partials/categories/item.tpl +11 -14
  43. package/templates/partials/categories/lastpost.tpl +2 -2
  44. package/templates/partials/{category-filter-content.tpl → category/filter-dropdown-content.tpl} +6 -4
  45. package/templates/partials/{category-selector-content.tpl → category/selector-dropdown-content.tpl} +1 -1
  46. package/templates/partials/category/subcategory.tpl +1 -1
  47. package/templates/partials/category/tags.tpl +0 -2
  48. package/templates/partials/category/watch.tpl +28 -4
  49. package/templates/partials/chats/message-window.tpl +3 -2
  50. package/templates/partials/chats/message.tpl +1 -1
  51. package/templates/partials/cookie-consent.tpl +5 -5
  52. package/templates/partials/flags/filters.tpl +1 -1
  53. package/templates/partials/groups/admin.tpl +1 -1
  54. package/templates/partials/groups/badge.tpl +1 -1
  55. package/templates/partials/groups/sidebar-left.tpl +1 -1
  56. package/templates/partials/mobile-footer.tpl +70 -62
  57. package/templates/partials/paginator.tpl +9 -9
  58. package/templates/partials/post_bar.tpl +5 -4
  59. package/templates/partials/posts_list_item.tpl +5 -5
  60. package/templates/partials/quick-search-results.tpl +1 -1
  61. package/templates/partials/search-filters.tpl +184 -0
  62. package/templates/partials/search-results.tpl +28 -32
  63. package/templates/partials/sidebar/chats.tpl +6 -3
  64. package/templates/partials/sidebar/drafts.tpl +5 -5
  65. package/templates/partials/sidebar/logged-in-menu.tpl +5 -5
  66. package/templates/partials/sidebar/notifications.tpl +4 -4
  67. package/templates/partials/sidebar/search-mobile.tpl +1 -1
  68. package/templates/partials/sidebar/search.tpl +1 -1
  69. package/templates/partials/sidebar/user-menu.tpl +1 -1
  70. package/templates/partials/sidebar-left.tpl +4 -1
  71. package/templates/partials/skin-switcher.tpl +2 -2
  72. package/templates/partials/tags_list.tpl +6 -4
  73. package/templates/partials/topic/browsing-users.tpl +0 -2
  74. package/templates/partials/topic/event.tpl +1 -1
  75. package/templates/partials/topic/navigation-post.tpl +5 -9
  76. package/templates/partials/topic/navigator-mobile.tpl +43 -0
  77. package/templates/partials/topic/post-editor.tpl +0 -2
  78. package/templates/partials/topic/post-menu-list.tpl +0 -2
  79. package/templates/partials/topic/post.tpl +19 -3
  80. package/templates/partials/topic/quickreply.tpl +3 -3
  81. package/templates/partials/topic/topic-menu-list.tpl +0 -2
  82. package/templates/partials/topic/watch.tpl +28 -4
  83. package/templates/partials/topic-list-bar.tpl +6 -6
  84. package/templates/partials/topics_list.tpl +46 -45
  85. package/templates/partials/users/filter-dropdown-content.tpl +20 -0
  86. package/templates/popular.tpl +1 -1
  87. package/templates/post-queue.tpl +112 -0
  88. package/templates/recent.tpl +1 -1
  89. package/templates/search.tpl +39 -177
  90. package/templates/top.tpl +1 -1
  91. package/templates/topic.tpl +2 -2
  92. package/templates/unread.tpl +1 -1
  93. package/templates/modules/usercard.tpl +0 -39
  94. package/templates/partials/acceptTos.tpl +0 -11
  95. package/templates/partials/category-filter-right.tpl +0 -5
  96. package/templates/partials/category-filter.tpl +0 -3
  97. package/templates/partials/category-selector-right.tpl +0 -5
  98. package/templates/partials/category-selector.tpl +0 -3
  99. package/templates/partials/slideout-menu.tpl +0 -6
@@ -1,70 +1,78 @@
1
- <div class="text-dark bg-light bottombar p-2 d-flex d-md-none justify-content-between fixed-bottom ff-secondary align-items-center">
2
- <div class="bottom-sheet">
3
- <button class="btn" data-bs-toggle="dropdown">
4
- <i class="fa fa-bars"></i>
5
- </button>
6
- <ul class="dropdown-menu">
7
- {{{ each navigation }}}
8
- <!-- IF function.displayMenuItem, @index -->
9
- <li class="nav-item {./class}{{{ if ./dropdown }}} dropend{{{ end }}}" title="{./title}">
10
- <a class="nav-link nav-btn navigation-link p-3 {{{ if navigation.dropdown }}}dropdown-toggle{{{ end }}}"
11
- {{{ if ./dropdown }}} href="#" role="button" data-bs-toggle="collapse" data-bs-target="#collapse-target-{@index}" onclick="event.stopPropagation();" {{{ else }}} href="{./route}"{{{ end }}} {{{ if ./id }}}id="{./id}"{{{ end }}}{{{ if ./targetBlank }}} target="_blank"{{{ end }}}>
12
- <span class="d-inline-flex justify-content-between align-items-center w-100">
13
- <span class="text-nowrap truncate-open">
14
- {{{ if ./iconClass }}}
15
- <i class="fa fa-fw {./iconClass}" data-content="{./content}"></i>
16
- {{{ end }}}
17
- {{{ if navigation.text }}}
18
- <span class="nav-text visible-open px-2 fw-semibold">{navigation.text}</span>
19
- {{{ end }}}
1
+ <div class="d-flex flex-column d-md-none fixed-bottom ff-secondary gap-1 align-items-center">
2
+
3
+ <!-- IMPORT partials/topic/navigator-mobile.tpl -->
4
+
5
+ <div class="bottombar p-2 text-dark bg-light d-flex justify-content-between align-items-center w-100">
6
+ <div class="">
7
+ <a href="#" role="button" class="nav-link nav-btn d-flex justify-content-between align-items-center position-relative" data-bs-toggle="dropdown">
8
+ <span class="position-relative">
9
+ <i class="fa fa-fw fa-lg fa-bars"></i>
10
+ <span component="unread/count" data-unread-url="{unreadCount.unreadUrl}" class="position-absolute top-0 start-100 translate-middle badge rounded-1 bg-primary {{{ if !unreadCount.mobileUnread }}}hidden{{{ end }}}">{unreadCount.mobileUnread}</span>
11
+ </span>
12
+ </a>
13
+ <ul class="navigation-dropdown dropdown-menu">
14
+ {{{ each navigation }}}
15
+ <!-- IF function.displayMenuItem, @index -->
16
+ <li class="nav-item {./class}{{{ if ./dropdown }}} dropend{{{ end }}}" title="{./title}">
17
+ <a class="nav-link nav-btn navigation-link px-3 py-2 {{{ if navigation.dropdown }}}dropdown-toggle{{{ end }}}"
18
+ {{{ if ./dropdown }}} href="#" role="button" data-bs-toggle="collapse" data-bs-target="#collapse-target-{@index}" onclick="event.stopPropagation();" {{{ else }}} href="{./route}"{{{ end }}} {{{ if ./id }}}id="{./id}"{{{ end }}}{{{ if ./targetBlank }}} target="_blank"{{{ end }}}>
19
+ <span class="d-inline-flex justify-content-between align-items-center w-100">
20
+ <span class="text-nowrap truncate-open">
21
+ {{{ if ./iconClass }}}
22
+ <i class="fa fa-fw {./iconClass}" data-content="{./content}"></i>
23
+ {{{ end }}}
24
+ {{{ if navigation.text }}}
25
+ <span class="nav-text visible-open px-2 fw-semibold">{navigation.text}</span>
26
+ {{{ end }}}
27
+ </span>
28
+ <span component="navigation/count" class="visible-open badge rounded-1 bg-primary {{{ if !./content }}}hidden{{{ end }}}">{./content}</span>
20
29
  </span>
21
- <span component="navigation/count" class="visible-open badge rounded-1 bg-primary {{{ if !./content }}}hidden{{{ end }}}">{./content}</span>
22
- </span>
23
- </a>
24
- {{{ if navigation.dropdown }}}
25
- <div class="ps-3">
26
- <ul id="collapse-target-{@index}" class="collapse list-unstyled ps-3">
27
- {navigation.dropdownContent}
28
- </ul>
29
- </div>
30
- {{{ end }}}
31
- </li>
32
- <!-- ENDIF function.displayMenuItem -->
33
- {{{end}}}
34
- </ul>
35
- </div>
30
+ </a>
31
+ {{{ if navigation.dropdown }}}
32
+ <div class="ps-3">
33
+ <ul id="collapse-target-{@index}" class="collapse list-unstyled ps-3">
34
+ {navigation.dropdownContent}
35
+ </ul>
36
+ </div>
37
+ {{{ end }}}
38
+ </li>
39
+ <!-- ENDIF function.displayMenuItem -->
40
+ {{{end}}}
41
+ </ul>
42
+ </div>
36
43
 
37
- <div class="">
38
- {{{ if config.loggedIn }}}
39
- <ul id="logged-in-menu" class="list-unstyled d-flex align-items-center w-100 gap-3 mb-0">
40
- {{{ if config.searchEnabled }}}
41
- <li component="sidebar/search" class="nav-item m-0 search bottom-sheet position-relative">
42
- <!-- IMPORT partials/sidebar/search-mobile.tpl -->
43
- </li>
44
- {{{ end }}}
44
+ <div class="">
45
+ {{{ if config.loggedIn }}}
46
+ <ul id="logged-in-menu" class="list-unstyled d-flex align-items-center w-100 gap-3 mb-0">
47
+ {{{ if config.searchEnabled }}}
48
+ <li component="sidebar/search" class="nav-item m-0 search">
49
+ <!-- IMPORT partials/sidebar/search-mobile.tpl -->
50
+ </li>
51
+ {{{ end }}}
45
52
 
46
- <li component="notifications" class="nav-item m-0 notifications bottom-sheet">
47
- <!-- IMPORT partials/sidebar/notifications.tpl -->
48
- </li>
53
+ <li component="notifications" class="nav-item m-0 notifications">
54
+ <!-- IMPORT partials/sidebar/notifications.tpl -->
55
+ </li>
49
56
 
50
- {{{ if canChat }}}
51
- <li class="nav-item m-0 chats bottom-sheet">
52
- <!-- IMPORT partials/sidebar/chats.tpl -->
53
- </li>
54
- {{{ end }}}
57
+ {{{ if canChat }}}
58
+ <li class="nav-item m-0 chats">
59
+ <!-- IMPORT partials/sidebar/chats.tpl -->
60
+ </li>
61
+ {{{ end }}}
55
62
 
56
- <li component="sidebar/drafts" class="nav-item m-0 drafts bottom-sheet">
57
- <!-- IMPORT partials/sidebar/drafts.tpl -->
58
- </li>
63
+ <li component="sidebar/drafts" class="hidden nav-item m-0 drafts">
64
+ <!-- IMPORT partials/sidebar/drafts.tpl -->
65
+ </li>
59
66
 
60
- <li id="user_label" class="nav-item m-0 py-2 bottom-sheet usermenu">
61
- <!-- IMPORT partials/sidebar/user-menu.tpl -->
62
- </li>
63
- </ul>
64
- {{{ else }}}
65
- <ul id="logged-out-menu" class="list-unstyled d-flex w-100 gap-3 mb-0 logged-out-menu">
66
- <!-- IMPORT partials/sidebar/logged-out-menu.tpl -->
67
- </ul>
68
- {{{ end }}}
67
+ <li id="user_label" class="nav-item m-0 py-2 usermenu">
68
+ <!-- IMPORT partials/sidebar/user-menu.tpl -->
69
+ </li>
70
+ </ul>
71
+ {{{ else }}}
72
+ <ul id="logged-out-menu" class="list-unstyled d-flex w-100 gap-3 mb-0 logged-out-menu">
73
+ <!-- IMPORT partials/sidebar/logged-out-menu.tpl -->
74
+ </ul>
75
+ {{{ end }}}
76
+ </div>
69
77
  </div>
70
78
  </div>
@@ -1,45 +1,45 @@
1
1
  <div component="pagination" class="pagination-container mt-3{{{ if !pagination.pages.length }}} hidden{{{ end }}}">
2
2
  <ul class="pagination pagination-sm gap-1 hidden-xs hidden-sm justify-content-center">
3
3
  <li class="page-item previous float-start{{{ if !pagination.prev.active }}} disabled{{{ end }}}">
4
- <a class="page-link rounded fw-secondary text-reset px-3" href="?{pagination.prev.qs}" data-page="{pagination.prev.page}"><i class="fa fa-chevron-left"></i> </a>
4
+ <a class="page-link rounded fw-secondary px-3" href="?{pagination.prev.qs}" data-page="{pagination.prev.page}"><i class="fa fa-chevron-left"></i> </a>
5
5
  </li>
6
6
 
7
7
  {{{each pagination.pages}}}
8
8
  {{{ if pagination.pages.separator }}}
9
9
  <li component="pagination/select-page" class="page-item page select-page">
10
- <a class="page-link rounded fw-secondary text-reset px-3" href="#"><i class="fa fa-ellipsis-h"></i></a>
10
+ <a class="page-link rounded fw-secondary px-3" href="#"><i class="fa fa-ellipsis-h"></i></a>
11
11
  </li>
12
12
  {{{ else }}}
13
13
  <li class="page-item page{{{ if pagination.pages.active }}} active{{{ end }}}" >
14
- <a class="page-link rounded fw-secondary text-reset px-3" href="?{pagination.pages.qs}" data-page="{pagination.pages.page}">{pagination.pages.page}</a>
14
+ <a class="page-link rounded fw-secondary px-3" href="?{pagination.pages.qs}" data-page="{pagination.pages.page}">{pagination.pages.page}</a>
15
15
  </li>
16
16
  {{{ end }}}
17
17
  {{{end}}}
18
18
 
19
19
  <li class="page-item next float-end {{{ if !pagination.next.active }}} disabled{{{ end }}}">
20
- <a class="page-link rounded fw-secondary text-reset px-3" href="?{pagination.next.qs}" data-page="{pagination.next.page}"> <i class="fa fa-chevron-right"></i></a>
20
+ <a class="page-link rounded fw-secondary px-3" href="?{pagination.next.qs}" data-page="{pagination.next.page}"> <i class="fa fa-chevron-right"></i></a>
21
21
  </li>
22
22
  </ul>
23
23
 
24
24
  <ul class="pagination pagination-sm hidden-md hidden-lg justify-content-center">
25
25
  <li class="page-item first{{{ if !pagination.prev.active }}} disabled{{{ end }}}">
26
- <a class="page-link fw-secondary text-reset" href="?{pagination.first.qs}" data-page="1"><i class="fa fa-fast-backward"></i> </a>
26
+ <a class="page-link fw-secondary href="?{pagination.first.qs}" data-page="1"><i class="fa fa-fast-backward"></i> </a>
27
27
  </li>
28
28
 
29
29
  <li class="page-item previous{{{ if !pagination.prev.active }}} disabled{{{ end }}}">
30
- <a class="page-link fw-secondary text-reset" href="?{pagination.prev.qs}" data-page="{pagination.prev.page}"><i class="fa fa-chevron-left"></i> </a>
30
+ <a class="page-link fw-secondary href="?{pagination.prev.qs}" data-page="{pagination.prev.page}"><i class="fa fa-chevron-left"></i> </a>
31
31
  </li>
32
32
 
33
33
  <li component="pagination/select-page" class="page-item page select-page">
34
- <a class="page-link fw-secondary text-reset" href="#">{pagination.currentPage} / {pagination.pageCount}</a>
34
+ <a class="page-link fw-secondary href="#">{pagination.currentPage} / {pagination.pageCount}</a>
35
35
  </li>
36
36
 
37
37
  <li class="page-item next{{{ if !pagination.next.active }}} disabled{{{ end }}}">
38
- <a class="page-link fw-secondary text-reset" href="?{pagination.next.qs}" data-page="{pagination.next.page}"> <i class="fa fa-chevron-right"></i></a>
38
+ <a class="page-link fw-secondary href="?{pagination.next.qs}" data-page="{pagination.next.page}"> <i class="fa fa-chevron-right"></i></a>
39
39
  </li>
40
40
 
41
41
  <li class="page-item last{{{ if !pagination.next.active }}} disabled{{{ end }}}">
42
- <a class="page-link fw-secondary text-reset" href="?{pagination.last.qs}" data-page="{pagination.pageCount}"><i class="fa fa-fast-forward"></i> </a>
42
+ <a class="page-link fw-secondary href="?{pagination.last.qs}" data-page="{pagination.pageCount}"><i class="fa fa-fast-forward"></i> </a>
43
43
  </li>
44
44
  </ul>
45
45
  </div>
@@ -16,10 +16,11 @@
16
16
  <a class="btn-ghost-sm d-none d-lg-flex align-self-stretch" target="_blank" href="{rssFeedUrl}" itemprop="item"><i class="fa fa-rss text-primary"></i></a>
17
17
  {{{ end }}}
18
18
 
19
- <span class="loading-indicator btn float-start text-muted navbar-text hidden" done="0">
20
- <i class="fa fa-refresh fa-spin"></i>
21
- <span class="hidden-xs">[[topic:loading_more_posts]]</span>
22
- </span>
19
+ {{{ if browsingUsers }}}
20
+ <div class="hidden-xs">
21
+ <!-- IMPORT partials/topic/browsing-users.tpl -->
22
+ </div>
23
+ {{{ end }}}
23
24
  </ul>
24
25
  <!-- IMPORT partials/topic/reply-button.tpl -->
25
26
  </div>
@@ -1,19 +1,19 @@
1
1
  <hr/>
2
- <a class="topic-title fw-semibold fs-5 text-reset" href="{config.relative_path}/post/{./pid}">
2
+ <a class="d-inline-block topic-title fw-semibold fs-5 mb-3 text-reset text-break" href="{config.relative_path}/post/{./pid}">
3
3
  {{{ if !./isMainPost }}}RE: {{{ end }}}{./topic.title}
4
4
  </a>
5
5
  <li component="post" class="posts-list-item {{{ if ./deleted }}} deleted{{{ else }}}{{{ if ./topic.deleted }}} deleted{{{ end }}}{{{ end }}}{{{ if ./topic.scheduled }}} scheduled{{{ end }}}" data-pid="{./pid}" data-uid="{./uid}">
6
6
  <div class="post-body d-flex flex-column gap-1">
7
7
  <div class="d-flex gap-3 post-info">
8
8
  <div class="post-author d-flex gap-1">
9
- <a class="lh-1" href="{config.relative_path}/user/{./user.userslug}">{buildAvatar(./user, "16px", true, "not-responsive")}</a>
9
+ <a class="lh-1 text-decoration-none" href="{config.relative_path}/user/{./user.userslug}">{buildAvatar(./user, "16px", true, "not-responsive")}</a>
10
10
  <a class="fw-semibold text-sm" href="{config.relative_path}/user/{./user.userslug}">{../user.displayname}</a>
11
11
  </div>
12
- <span class="timeago text-sm text-muted" title="{../timestampISO}"></span>
12
+ <span class="timeago text-sm text-muted" title="{./timestampISO}"></span>
13
13
  </div>
14
14
 
15
- <div component="post/content" class="content text-sm">
16
- {../content}
15
+ <div component="post/content" class="content text-sm text-break">
16
+ {./content}
17
17
  </div>
18
18
  </div>
19
19
  </li>
@@ -9,7 +9,7 @@
9
9
  </div>
10
10
  {{{ end }}}
11
11
 
12
- <ul id="quick-search-results" class="quick-search-results list-unstyled mb-0 p-0 overflow-auto" style="max-width:400px; max-height: 500px;">
12
+ <ul id="quick-search-results" class="quick-search-results list-unstyled mb-0 p-0 overflow-auto overscroll-behavior-contain" style="max-width: 400px; max-height: 500px;">
13
13
  <li role="separator" class="dropdown-divider d-none d-md-block"></li>
14
14
  {{{ each posts }}}
15
15
  <li data-tid="{posts.topic.tid}" data-pid="{posts.pid}" class="d-flex flex-column gap-1">
@@ -0,0 +1,184 @@
1
+ <div class="d-flex flex-wrap gap-2 align-items-center" component="search/filters">
2
+ <!-- category filter -->
3
+ <div class="post-search-item">
4
+ <div component="category/filter" class="dropdown" data-filter-name="category">
5
+ <a component="category/filter/button" class="filter-btn btn btn-light btn-sm border {{{ if filters.categories.active }}}active-filter{{{ end }}} dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" data-bs-auto-close="outside" aria-expanded="false">
6
+ <span class="filter-label">{{{ if filters.categories.active }}}{filters.categories.label}{{{ else }}}[[search:categories]]{{{ end }}}</span>
7
+ <span class="caret"></span>
8
+ </a>
9
+
10
+ <ul class="dropdown-menu">
11
+ <li class="px-3 py-1 mb-2 d-flex flex-column gap-2">
12
+ <div component="category-selector-search">
13
+ <input type="text" class="form-control" component="category/filter/search" placeholder="[[search:type-a-category]]">
14
+ </div>
15
+ </li>
16
+ <div component="category/list" class="overflow-auto" style="max-height: 350px;"></div>
17
+ <div class="px-3 py-1">
18
+ <div class="form-check">
19
+ <input id="search-children" class="form-check-input" type="checkbox"/>
20
+ <label class="form-check-label" for="search-children">[[search:search-child-categories]]</label>
21
+ </div>
22
+ </div>
23
+ </ul>
24
+ </div>
25
+ </div>
26
+
27
+
28
+ <!-- tag filter -->
29
+ <div class="post-search-item">
30
+ <div component="tag/filter" class="dropdown" data-filter-name="tag">
31
+ <a component="tag/filter/button" class="filter-btn btn btn-light btn-sm border {{{ if filters.tags.active }}}active-filter{{{ end }}} dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" data-bs-auto-close="outside" aria-expanded="false">
32
+ <span class="filter-label">{{{ if filters.tags.active }}}{filters.tags.label}{{{ else }}}[[search:tags]]{{{ end }}}</span>
33
+ <span class="caret"></span>
34
+ </a>
35
+
36
+ <ul class="dropdown-menu" style="width: 350px;">
37
+ <li class="px-3 py-1 d-flex flex-column gap-2">
38
+ <input type="text" class="form-control" component="tag/filter/search" placeholder="[[search:type-a-tag]]">
39
+ <div component="tag/filter/selected" class="d-flex flex-wrap gap-2">
40
+ {{{ each tagFilterSelected }}}
41
+ <div class="d-flex px-2 py-1 rounded-1 text-bg-primary gap-2 align-items-center text-sm">
42
+ <div>{./valueEscaped}</div>
43
+ <button component="tag/filter/delete" data-tag="{./valueEscaped}" class="btn btn-primary btn-sm py-0"><i class="fa fa-times fa-xs"></i></button>
44
+ </div>
45
+ {{{ end }}}
46
+ </div>
47
+ <hr/>
48
+ <div component="tag/filter/results" class="d-flex flex-wrap gap-2">
49
+ {{{ each tagFilterResults }}}
50
+ <button class="btn btn-light btn-sm border" data-tag="{./valueEscaped}">{./valueEscaped}</button>
51
+ {{{ end }}}
52
+ </div>
53
+ </li>
54
+ </ul>
55
+ </div>
56
+ </div>
57
+
58
+ <!-- user name filter -->
59
+ <div class="post-search-item">
60
+ <div component="user/filter" class="dropdown" data-filter-name="user">
61
+ <a component="user/filter/button" class="filter-btn btn btn-light btn-sm border {{{ if filters.users.active }}}active-filter{{{ end }}} dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" data-bs-auto-close="outside" aria-expanded="false">
62
+ <span class="filter-label">{{{ if filters.users.active }}}{filters.users.label}{{{ else }}}[[search:posted-by]]{{{ end }}}</span>
63
+ <span class="caret"></span>
64
+ </a>
65
+
66
+ <ul class="dropdown-menu" style="width: 350px;">
67
+ <li class="px-3 py-1 d-flex flex-column gap-2">
68
+ <input type="text" class="form-control" component="user/filter/search" placeholder="[[search:type-a-username]]">
69
+ <div component="user/filter/selected" class="d-flex flex-wrap gap-2">
70
+ {{{ each userFilterSelected }}}
71
+ <div class="d-flex px-2 py-1 rounded-1 text-bg-primary gap-2 align-items-center text-sm">
72
+ {buildAvatar(@value, "16px", true)} {./username}
73
+ <button component="user/filter/delete" data-uid="{./uid}" class="btn btn-primary btn-sm py-0"><i class="fa fa-times fa-xs"></i></button>
74
+ </div>
75
+ {{{ end }}}
76
+ </div>
77
+ <hr/>
78
+ <div component="user/filter/results" class="d-flex flex-wrap gap-2">
79
+ {{{ each userFilterResults }}}
80
+ <button class="btn btn-light btn-sm border" data-uid="{./uid}" data-username="{./username}">{buildAvatar(@value, "16px", true)} {./username}</button>
81
+ {{{ end }}}
82
+ </div>
83
+ </li>
84
+ </ul>
85
+ </div>
86
+ </div>
87
+
88
+
89
+ <!-- reply count filter -->
90
+ <div class="post-search-item">
91
+ <div class="dropdown" data-filter-name="replies">
92
+ <a id="reply-count-button" class="filter-btn btn btn-light btn-sm border {{{ if filters.replies.active }}}active-filter{{{ end }}} dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
93
+ <span class="filter-label">{{{ if filters.replies.active }}}{filters.replies.label}{{{ else }}}[[search:replies]]{{{ end }}}</span>
94
+ <span class="caret"></span>
95
+ </a>
96
+
97
+ <ul class="dropdown-menu" style="width: 300px;">
98
+ <li class="px-3 py-1 d-flex flex-nowrap gap-2">
99
+ <select id="reply-count-filter" class="form-select py-2 ps-2 pe-3">
100
+ <option value="atleast">[[search:at-least]]</option>
101
+ <option value="atmost">[[search:at-most]]</option>
102
+ </select>
103
+ <input id="reply-count" type="number" min="0" class="form-control py-2 ps-2 pe-3" />
104
+ </li>
105
+ </ul>
106
+ </div>
107
+ </div>
108
+
109
+ <!-- time filter -->
110
+ <div class="post-search-item">
111
+ <div class="dropdown" data-filter-name="time">
112
+ <a id="post-time-button" class="filter-btn btn btn-light btn-sm border {{{ if filters.time.active }}}active-filter{{{ end }}} dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
113
+ <span class="filter-label">{{{ if filters.time.active }}}{filters.time.label}{{{ else }}}[[search:time]]{{{ end }}}</span>
114
+ <span class="caret"></span>
115
+ </a>
116
+
117
+ <ul class="dropdown-menu" style="width: 350px;">
118
+ <li class="px-3 py-1 d-flex flex-nowrap gap-2">
119
+ <select id="post-time-filter" class="form-select py-2 ps-2 pe-3">
120
+ <option value="newer">[[search:newer-than]]</option>
121
+ <option value="older">[[search:older-than]]</option>
122
+ </select>
123
+ <select id="post-time-range" class="form-select py-2 ps-2 pe-3">
124
+ <option value="">[[search:any-date]]</option>
125
+ <option value="86400">[[search:yesterday]]</option>
126
+ <option value="604800">[[search:one-week]]</option>
127
+ <option value="1209600">[[search:two-weeks]]</option>
128
+ <option value="2592000">[[search:one-month]]</option>
129
+ <option value="7776000">[[search:three-months]]</option>
130
+ <option value="15552000">[[search:six-months]]</option>
131
+ <option value="31104000">[[search:one-year]]</option>
132
+ </select>
133
+ </li>
134
+ </ul>
135
+ </div>
136
+ </div>
137
+
138
+ <!-- sort filter -->
139
+ <div class="post-search-item">
140
+ <div class="dropdown" data-filter-name="sort">
141
+ <a id="sort-by-button" class="filter-btn btn btn-light btn-sm border {{{ if filters.sort.active }}}active-filter{{{ end }}} dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
142
+ <span class="filter-label">{{{ if filters.sort.active }}}{filters.sort.label}{{{ else }}}[[search:sort]]{{{ end }}}</span>
143
+ <span class="caret"></span>
144
+ </a>
145
+
146
+ <ul class="dropdown-menu" style="width: 250px;">
147
+ <li class="px-3 py-1 d-flex flex-column gap-2">
148
+ <select id="post-sort-by" class="form-select py-2 ps-2 pe-3">
149
+ <option value="relevance">[[search:relevance]]</option>
150
+ <option value="timestamp">[[search:post-time]]</option>
151
+ <option value="votes">[[search:votes]]</option>
152
+ <option value="topic.lastposttime">[[search:last-reply-time]]</option>
153
+ <option value="topic.title">[[search:topic-title]]</option>
154
+ <option value="topic.postcount">[[search:number-of-replies]]</option>
155
+ <option value="topic.viewcount">[[search:number-of-views]]</option>
156
+ <option value="topic.votes">[[search:topic-votes]]</option>
157
+ <option value="topic.timestamp">[[search:topic-start-date]]</option>
158
+ <option value="user.username">[[search:username]]</option>
159
+ <option value="category.name">[[search:category]]</option>
160
+ </select>
161
+ <select id="post-sort-direction" class="form-select py-2 ps-2 pe-3">
162
+ <option value="desc">[[search:descending]]</option>
163
+ <option value="asc">[[search:ascending]]</option>
164
+ </select>
165
+ </li>
166
+ </ul>
167
+ </div>
168
+ </div>
169
+
170
+ <!-- save & reset preferences -->
171
+ <div class="post-search-item">
172
+ <div class="dropdown">
173
+ <a class="btn btn-light btn-sm border border-gray-300 dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">[[search:save]] <span class="caret"></span>
174
+ </a>
175
+
176
+ <ul class="dropdown-menu" style="width: 300px;">
177
+ <li class="px-3 py-1 d-flex flex-column gap-2">
178
+ <button id="save-preferences" class="btn btn-primary">[[search:save-preferences]]</button>
179
+ <button id="clear-preferences" class="btn-outline border">[[search:clear-preferences]]</button>
180
+ </li>
181
+ </ul>
182
+ </div>
183
+ </div>
184
+ </div>
@@ -1,41 +1,37 @@
1
- <!-- THIS FILE IS STILL PERSONA -->
2
-
3
- <div id="results" class="search-results col-md-12" data-search-query="{search_query}">
4
- {{{ if matchCount }}}
5
- <div class="alert alert-info">[[search:results_matching, {matchCount}, {search_query}, {time}]] </div>
6
- {{{ else }}}
7
- {{{ if search_query }}}
8
- <div class="alert alert-warning">[[search:no-matches]]</div>
1
+ {{{ if matchCount }}}
2
+ <div class="card card-header text-xs px-2 py-1 fw-semibold border-0 align-self-start">[[search:results_matching, {matchCount}, {search_query}, {time}]] </div>
3
+ {{{ else }}}
4
+ {{{ if search_query }}}
5
+ <div class="badge text-bg-warning align-self-start">[[search:no-matches]]</div>
6
+ {{{ end }}}
7
+ {{{ end }}}
8
+
9
+ <div id="results" class="search-results" data-search-query="{search_query}">
10
+ {{{ if showAsPosts }}}
11
+ {{{ if posts.length }}}
12
+ <!-- IMPORT partials/posts_list.tpl -->
9
13
  {{{ end }}}
10
14
  {{{ end }}}
11
15
 
12
- {{{each posts}}}
13
- <div class="topic-row card clearfix mb-3">
14
- <div class="card-body">
15
- <div>
16
- <a href="{config.relative_path}/user/{./user.userslug}">{buildAvatar(./user, "24px", true)}</a>
17
- <span class="search-result-text search-result-title"><a href="{config.relative_path}/post/{posts.pid}">{./topic.title}</a></span>
18
- </div>
19
-
20
- {{{ if showAsPosts }}}
21
- <div class="search-result-text">
22
- {./content}
23
- <p class="fade-out"></p>
16
+ {{{ if showAsTopics }}}
17
+ {{{ each posts }}}
18
+ <hr/>
19
+ <div class="topic-row mb-3">
20
+ <a class="topic-title fw-semibold fs-5 text-reset text-break" href="{config.relative_path}/post/{./pid}">
21
+ {{{ if !./isMainPost }}}RE: {{{ end }}}{./topic.title}
22
+ </a>
23
+ <div class="post-body d-flex flex-column gap-1">
24
+ <div class="d-flex gap-3 post-info">
25
+ <div class="post-author d-flex gap-1">
26
+ <a class="lh-1 text-decoration-none" href="{config.relative_path}/user/{./user.userslug}">{buildAvatar(./user, "16px", true, "not-responsive")}</a>
27
+ <a class="fw-semibold text-sm" href="{config.relative_path}/user/{./user.userslug}">{../user.displayname}</a>
28
+ </div>
29
+ <span class="timeago text-sm text-muted" title="{./timestampISO}"></span>
24
30
  </div>
25
- {{{ end }}}
26
-
27
- <small class="post-info float-end">
28
- <a href="{config.relative_path}/category/{./category.slug}">
29
- <div class="category-item d-inline-block">
30
- {buildCategoryIcon(./category, "24px", "rounded-circle")}
31
- {./category.name}
32
- </div>
33
- </a> &bull;
34
- <span class="timeago" title="{./timestampISO}"></span>
35
- </small>
36
31
  </div>
37
32
  </div>
38
- {{{end}}}
33
+ {{{ end }}}
34
+ {{{ end }}}
39
35
 
40
36
  {{{ if users.length }}}
41
37
  <!-- IMPORT partials/users_list.tpl -->
@@ -1,4 +1,4 @@
1
- <a data-bs-toggle="dropdown" href="#" role="button" class="nav-link nav-btn d-flex gap-2 justify-content-between align-items-center position-relative" title="[[global:header.chats]]" component="chat/dropdown">
1
+ <a data-bs-toggle="dropdown" href="#" role="button" class="nav-link nav-btn d-flex gap-2 justify-content-between align-items-center position-relative" component="chat/dropdown">
2
2
  <span class="d-flex gap-2 align-items-center text-nowrap truncate-open">
3
3
  <span class="position-relative">
4
4
  <i component="chat/icon" class="fa fa-fw {{{ if unreadCount.chat}}}fa-comment{{{ else }}}fa-comment-o{{{ end }}} unread-count" data-content="{unreadCount.chat}"></i>
@@ -10,7 +10,7 @@
10
10
  </a>
11
11
  <ul class="chats-dropdown dropdown-menu p-1 shadow">
12
12
  <li>
13
- <ul component="chat/list" class="chat-list chats-list list-unstyled p-0 pe-1">
13
+ <ul component="chat/list" class="chat-list chats-list list-unstyled overscroll-behavior-contain p-0 pe-1">
14
14
  <li class="dropdown-item rounded-1 p-2 d-flex gap-2 placeholder-wave">
15
15
  <div class="main-avatar">
16
16
  <div class="placeholder" style="width: 32px; height: 32px;"></div>
@@ -47,7 +47,10 @@
47
47
  <li class="notif-dropdown-link">
48
48
  <div class="d-flex justify-content-center gap-1 flex-wrap">
49
49
  <a component="chats/mark-all-read" role="button" href="#" class="btn btn-sm btn-light mark-all-read flex-fill text-nowrap text-truncate ff-secondary"><i class="fa fa-check-double"></i> [[modules:chat.mark_all_read]]</a>
50
- <a class="btn btn-sm btn-primary flex-fill text-nowrap text-truncate ff-secondary" href="{relative_path}/user/{user.userslug}/chats"><i class="fa fa-list"></i> [[modules:chat.see_all]]</a>
50
+ <!-- on md and up see all chats button goes to last room -->
51
+ <a class="d-none d-md-inline btn btn-sm btn-primary flex-fill text-nowrap text-truncate ff-secondary" href="{relative_path}/user/{user.userslug}/chats{{{ if user.lastRoomId }}}/{user.lastRoomId}{{{ end }}}"><i class="fa fa-list"></i> [[modules:chat.see_all]]</a>
52
+ <!-- on xs&sm the see all chats button goes to the list of chats -->
53
+ <a class="d-inline d-md-none btn btn-sm btn-primary flex-fill text-nowrap text-truncate ff-secondary" href="{relative_path}/user/{user.userslug}/chats"><i class="fa fa-list"></i> [[modules:chat.see_all]]</a>
51
54
  </div>
52
55
  </li>
53
56
  </ul>
@@ -1,4 +1,4 @@
1
- <a data-bs-toggle="dropdown" href="#" role="button" class="nav-link nav-btn d-flex gap-2 justify-content-between align-items-center position-relative" title="[[global:header.drafts]]">
1
+ <a data-bs-toggle="dropdown" href="#" role="button" class="nav-link nav-btn d-flex gap-2 justify-content-between align-items-center position-relative">
2
2
  <span class="d-flex gap-2 align-items-center text-nowrap truncate-open">
3
3
  <span class="position-relative">
4
4
  <i component="drafts/icon" class="fa fa-fw fa-pen-to-square unread-count"></i>
@@ -10,7 +10,7 @@
10
10
  </a>
11
11
  <ul class="drafts-dropdown dropdown-menu p-1 shadow">
12
12
  <li>
13
- <ul component="drafts/list" class="draft-list list-unstyled d-flex flex-column gap-1 pe-1">
13
+ <ul component="drafts/list" class="draft-list list-unstyled d-flex flex-column overscroll-behavior-contain gap-1 pe-1">
14
14
  <li class="no-drafts text-center p-2">[[modules:composer.no-drafts]]</li>
15
15
 
16
16
  {{{ each drafts }}}
@@ -22,12 +22,12 @@
22
22
  <div class="dropdown-item rounded-1 p-2 d-flex flex-column gap-2 pointer" component="drafts/open" data-save-id="{./save_id}">
23
23
  {{{ if (./action == "topics.post") }}}
24
24
  {{{ if ./title}}}
25
- <div class="text text-xs fw-semibold line-clamp-2">{./title}</div>
25
+ <div class="text text-xs fw-semibold line-clamp-2 text-break">{./title}</div>
26
26
  {{{ end }}}
27
27
  {{{ end }}}
28
28
 
29
29
  {{{ if (./action == "posts.reply") }}}
30
- <div class="text text-xs fw-semibold line-clamp-2">[[topic:composer.replying_to, "{./title}"]]</div>
30
+ <div class="text text-xs fw-semibold line-clamp-2 text-break">[[topic:composer.replying_to, "{./title}"]]</div>
31
31
  {{{ end }}}
32
32
 
33
33
  {{{ if (./action == "posts.edit") }}}
@@ -35,7 +35,7 @@
35
35
  {{{ end }}}
36
36
 
37
37
  {{{ if ./text }}}
38
- <div class="text text-sm line-clamp-3">{./text}</div>
38
+ <div class="text text-sm line-clamp-3 text-break">{./text}</div>
39
39
  {{{ end }}}
40
40
  <div class="timeago text-xs text-muted" title="{./timestampISO}"></div>
41
41
  </div>
@@ -1,23 +1,23 @@
1
- <li id="user_label" class="nav-item mx-2 dropstart usermenu" title="[[global:header.profile]]">
1
+ <li id="user_label" class="nav-item mx-2 dropstart usermenu" title="{user.username}">
2
2
  <!-- IMPORT partials/sidebar/user-menu.tpl -->
3
3
  </li>
4
4
 
5
5
  {{{ if config.searchEnabled }}}
6
- <li component="sidebar/search" class="nav-item mx-2 search dropstart position-relative">
6
+ <li component="sidebar/search" class="nav-item mx-2 search dropstart position-relative" title="[[global:header.search]]">
7
7
  <!-- IMPORT partials/sidebar/search.tpl -->
8
8
  </li>
9
9
  {{{ end }}}
10
10
 
11
- <li component="notifications" class="nav-item mx-2 notifications dropstart">
11
+ <li component="notifications" class="nav-item mx-2 notifications dropstart" title="[[global:header.notifications]]">
12
12
  <!-- IMPORT partials/sidebar/notifications.tpl -->
13
13
  </li>
14
14
 
15
15
  {{{ if canChat }}}
16
- <li class="nav-item mx-2 chats dropstart">
16
+ <li class="nav-item mx-2 chats dropstart" title="[[global:header.chats]]">
17
17
  <!-- IMPORT partials/sidebar/chats.tpl -->
18
18
  </li>
19
19
  {{{ end }}}
20
20
 
21
- <li component="sidebar/drafts" class="nav-item mx-2 drafts dropstart">
21
+ <li component="sidebar/drafts" class="nav-item mx-2 drafts dropstart" title="[[global:header.drafts]]">
22
22
  <!-- IMPORT partials/sidebar/drafts.tpl -->
23
23
  </li>