nodebb-theme-harmony 1.2.11 → 1.2.12
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.
- package/package.json +1 -1
- package/scss/topic.scss +3 -1
- package/templates/account/blocks.tpl +5 -5
- package/templates/account/categories.tpl +17 -13
- package/templates/account/topics.tpl +5 -5
- package/templates/flags/detail.tpl +10 -10
- package/templates/groups/members.tpl +5 -1
- package/templates/header.tpl +1 -0
- package/templates/partials/account/admin-menu.tpl +9 -9
- package/templates/partials/account/header.tpl +2 -2
- package/templates/partials/categories/lastpost.tpl +1 -1
- package/templates/partials/category/filter-dropdown-content.tpl +3 -3
- package/templates/partials/category/selector-dropdown-content.tpl +3 -3
- package/templates/partials/category/sort.tpl +32 -22
- package/templates/partials/category/tools.tpl +15 -15
- package/templates/partials/category/watch.tpl +6 -6
- package/templates/partials/flags/bulk-actions.tpl +3 -3
- package/templates/partials/flags/filters.tpl +29 -29
- package/templates/partials/groups/filter-dropdown-content.tpl +3 -3
- package/templates/partials/mobile-footer.tpl +2 -2
- package/templates/partials/post_bar.tpl +1 -1
- package/templates/partials/search-filters.tpl +14 -14
- package/templates/partials/sidebar/chats.tpl +2 -2
- package/templates/partials/sidebar/drafts.tpl +3 -3
- package/templates/partials/sidebar/notifications.tpl +2 -2
- package/templates/partials/sidebar/search-mobile.tpl +2 -2
- package/templates/partials/sidebar/search.tpl +2 -2
- package/templates/partials/sidebar/user-menu.tpl +16 -16
- package/templates/partials/sidebar-left.tpl +3 -3
- package/templates/partials/skin-switcher.tpl +6 -6
- package/templates/partials/tags/filter-dropdown-content.tpl +4 -4
- package/templates/partials/tags/watch.tpl +4 -4
- package/templates/partials/topic/navigator-mobile.tpl +1 -1
- package/templates/partials/topic/post-menu-list.tpl +18 -18
- package/templates/partials/topic/post-menu.tpl +1 -1
- package/templates/partials/topic/post.tpl +3 -3
- package/templates/partials/topic/quickreply.tpl +1 -1
- package/templates/partials/topic/reply-button.tpl +2 -2
- package/templates/partials/topic/sort.tpl +17 -14
- package/templates/partials/topic/tools.tpl +2 -2
- package/templates/partials/topic/topic-menu-list.tpl +57 -16
- package/templates/partials/topic/watch.tpl +5 -5
- package/templates/partials/topic-filters.tpl +2 -2
- package/templates/partials/topic-terms.tpl +2 -2
- package/templates/partials/users/filter-dropdown-content.tpl +3 -3
- package/templates/post-queue.tpl +16 -16
package/package.json
CHANGED
package/scss/topic.scss
CHANGED
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
<div class="justify-content-end">
|
|
5
5
|
<div class="dropdown">
|
|
6
6
|
<div class="input-group">
|
|
7
|
-
<input class="form-control form-control-sm" type="text" id="user-search" placeholder="[[users:enter-username]]" data-bs-toggle="dropdown" autocomplete="off"/>
|
|
7
|
+
<input class="form-control form-control-sm" type="text" id="user-search" placeholder="[[users:enter-username]]" data-bs-toggle="dropdown" autocomplete="off" aria-haspopup="true" aria-expanded="false"/>
|
|
8
8
|
|
|
9
|
-
<ul component="blocks/search/list" class="dropdown-menu dropdown-menu-end p-1 text-sm block-edit overflow-auto" style="max-height:300px;">
|
|
10
|
-
<li><a href="#" class="dropdown-item">[[admin/menu:search.start-typing]]</a></li>
|
|
9
|
+
<ul component="blocks/search/list" class="dropdown-menu dropdown-menu-end p-1 text-sm block-edit overflow-auto" style="max-height:300px;" role="menu">
|
|
10
|
+
<li><a href="#" class="dropdown-item" role="menuitem">[[admin/menu:search.start-typing]]</a></li>
|
|
11
11
|
{{{ each edit }}}
|
|
12
|
-
<li
|
|
13
|
-
<div class="dropdown-item d-flex flex-nowrap gap-2 justify-content-between">
|
|
12
|
+
<li>
|
|
13
|
+
<div class="dropdown-item d-flex flex-nowrap gap-2 justify-content-between" role="menuitem">
|
|
14
14
|
<div class="text-truncate">
|
|
15
15
|
<a href="{config.relative_path}/uid/{./uid}" class="text-decoration-none">{buildAvatar(edit, "24px", true)} {./username}</a>
|
|
16
16
|
</div>
|
|
@@ -7,11 +7,12 @@
|
|
|
7
7
|
|
|
8
8
|
<div class="d-flex gap-1">
|
|
9
9
|
<div class="btn-group bottom-sheet" component="category/watch/all">
|
|
10
|
-
<button class="btn-ghost-sm ff-secondary fw-semibold dropdown-toggle" data-bs-toggle="dropdown" type="button">
|
|
10
|
+
<button class="btn-ghost-sm ff-secondary fw-semibold dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" type="button">
|
|
11
11
|
<span>[[user:change-all]]</span>
|
|
12
12
|
</button>
|
|
13
|
-
<ul class="dropdown-menu p-1 text-sm dropdown-menu-end">
|
|
14
|
-
<li
|
|
13
|
+
<ul class="dropdown-menu p-1 text-sm dropdown-menu-end" role="menu">
|
|
14
|
+
<li>
|
|
15
|
+
<a class="dropdown-item rounded-1 d-flex flex-column p-2" href="#" component="category/watching" data-state="watching" role="menuitem">
|
|
15
16
|
<div class="d-flex align-items-center gap-2">
|
|
16
17
|
<i class="flex-shrink-0 fa fa-fw fa-bell-o"></i>
|
|
17
18
|
<span class="flex-grow-1 fw-semibold">[[category:watching]]</span>
|
|
@@ -19,15 +20,17 @@
|
|
|
19
20
|
<div class="help-text text-muted text-xs">[[category:watching.description]]</div>
|
|
20
21
|
</a>
|
|
21
22
|
</li>
|
|
22
|
-
<li
|
|
23
|
-
<
|
|
24
|
-
<
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
23
|
+
<li>
|
|
24
|
+
<a class="dropdown-item rounded-1 d-flex flex-column p-2" href="#" component="category/tracking" data-state="tracking" role="menuitem">
|
|
25
|
+
<div class="d-flex align-items-center gap-2">
|
|
26
|
+
<i class="flex-shrink-0 fa fa-fw fa-inbox"></i>
|
|
27
|
+
<span class="flex-grow-1 fw-semibold">[[category:tracking]]</span>
|
|
28
|
+
</div>
|
|
29
|
+
<div class="help-text text-muted text-xs">[[category:tracking.description]]</div>
|
|
30
|
+
</a>
|
|
31
|
+
</li>
|
|
32
|
+
<li>
|
|
33
|
+
<a class="dropdown-item rounded-1 d-flex flex-column p-2" href="#" component="category/notwatching" data-state="notwatching" role="menuitem">
|
|
31
34
|
<div class="d-flex align-items-center gap-2">
|
|
32
35
|
<i class="flex-shrink-0 fa fa-fw fa-clock-o"></i>
|
|
33
36
|
<span class="flex-grow-1 fw-semibold">[[category:not-watching]]</span>
|
|
@@ -35,7 +38,8 @@
|
|
|
35
38
|
<div class="help-text text-muted text-xs">[[category:not-watching.description]]</div>
|
|
36
39
|
</a>
|
|
37
40
|
</li>
|
|
38
|
-
<li
|
|
41
|
+
<li>
|
|
42
|
+
<a class="dropdown-item rounded-1 d-flex flex-column p-2" href="#" component="category/ignoring" data-state="ignoring" role="menuitem">
|
|
39
43
|
<div class="d-flex align-items-center gap-2">
|
|
40
44
|
<i class="flex-shrink-0 fa fa-fw fa-eye-slash"></i>
|
|
41
45
|
<span class="flex-grow-1 fw-semibold">[[category:ignoring]]</span>
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
<h3 class="fw-semibold fs-5 mb-0">[[global:topics]]</h3>
|
|
6
6
|
{{{ if showSort }}}
|
|
7
7
|
<div class="btn-group bottom-sheet" component="thread/sort">
|
|
8
|
-
<button title="[[global:sort]]" class="btn-ghost-sm dropdown-toggle" data-bs-toggle="dropdown" type="button"><i class="fa-solid fa-arrow-up-wide-short"></i></button>
|
|
9
|
-
<ul class="dropdown-menu p-1 text-sm">
|
|
8
|
+
<button title="[[global:sort]]" class="btn-ghost-sm dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" type="button"><i class="fa-solid fa-arrow-up-wide-short"></i></button>
|
|
9
|
+
<ul class="dropdown-menu p-1 text-sm" role="menu">
|
|
10
10
|
{{{each sortOptions }}}
|
|
11
11
|
<li>
|
|
12
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" href="{config.relative_path}{./url}">
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" href="{config.relative_path}{./url}" role="menuitem">
|
|
13
|
+
<div class="flex-grow-1">{./name}</div>
|
|
14
|
+
<i class="flex-shrink-0 fa fa-fw {{{if ./selected}}}fa-check{{{end}}}"></i>
|
|
15
15
|
</a>
|
|
16
16
|
</li>
|
|
17
17
|
{{{end}}}
|
|
@@ -15,24 +15,24 @@
|
|
|
15
15
|
[[flags:flagged-user]]
|
|
16
16
|
<i class="fa fa-chevron-right ms-auto text-secondary"></i>
|
|
17
17
|
</button>
|
|
18
|
-
<ul class="dropdown-menu p-1 text-sm">
|
|
19
|
-
<li><a class="dropdown-item rounded-1" href="{config.relative_path}/uid/{target.uid}">[[flags:view-profile]]</a></li>
|
|
18
|
+
<ul class="dropdown-menu p-1 text-sm" role="menu">
|
|
19
|
+
<li><a class="dropdown-item rounded-1" href="{config.relative_path}/uid/{target.uid}" role="menuitem">[[flags:view-profile]]</a></li>
|
|
20
20
|
{{{ if !config.disableChat }}}
|
|
21
|
-
<li><a class="dropdown-item rounded-1" href="#" data-action="chat">[[flags:start-new-chat]]</a></li>
|
|
21
|
+
<li><a class="dropdown-item rounded-1" href="#" data-action="chat" role="menuitem">[[flags:start-new-chat]]</a></li>
|
|
22
22
|
{{{ end }}}
|
|
23
23
|
<li class="dropdown-divider"></li>
|
|
24
24
|
{{{ if privileges.ban }}}
|
|
25
|
-
<li class="{{{ if target.user.banned }}}hidden{{{ end }}}"><a class="dropdown-item rounded-1" href="#" data-action="ban">[[user:ban-account]]</a></li>
|
|
26
|
-
<li class="{{{ if !target.user.banned }}}hidden{{{ end }}}"><a class="dropdown-item rounded-1" href="#" data-action="unban">[[user:unban-account]]</a></li>
|
|
25
|
+
<li class="{{{ if target.user.banned }}}hidden{{{ end }}}"><a class="dropdown-item rounded-1" href="#" data-action="ban" role="menuitem">[[user:ban-account]]</a></li>
|
|
26
|
+
<li class="{{{ if !target.user.banned }}}hidden{{{ end }}}"><a class="dropdown-item rounded-1" href="#" data-action="unban" role="menuitem">[[user:unban-account]]</a></li>
|
|
27
27
|
{{{ end }}}
|
|
28
28
|
{{{ if privileges.mute}}}
|
|
29
|
-
<li class="{{{ if target.user.muted }}}hidden{{{ end }}}"><a class="dropdown-item rounded-1" href="#" data-action="mute">[[user:mute-account]]</a></li>
|
|
30
|
-
<li class="{{{ if !target.user.muted }}}hidden{{{ end }}}"><a class="dropdown-item rounded-1" href="#" data-action="unmute">[[user:unmute-account]]</a></li>
|
|
29
|
+
<li class="{{{ if target.user.muted }}}hidden{{{ end }}}"><a class="dropdown-item rounded-1" href="#" data-action="mute" role="menuitem">[[user:mute-account]]</a></li>
|
|
30
|
+
<li class="{{{ if !target.user.muted }}}hidden{{{ end }}}"><a class="dropdown-item rounded-1" href="#" data-action="unmute" role="menuitem">[[user:unmute-account]]</a></li>
|
|
31
31
|
{{{ end }}}
|
|
32
32
|
{{{ if privileges.admin:users }}}
|
|
33
|
-
<li><a class="dropdown-item rounded-1" href="#" data-action="delete-account">[[user:delete-account-as-admin]]</a></li>
|
|
34
|
-
<li><a class="dropdown-item rounded-1" href="#" data-action="delete-content">[[user:delete-content]]</a></li>
|
|
35
|
-
<li><a class="dropdown-item rounded-1" href="#" data-action="delete-all">[[user:delete-all]]</a></li>
|
|
33
|
+
<li><a class="dropdown-item rounded-1" href="#" data-action="delete-account" role="menuitem">[[user:delete-account-as-admin]]</a></li>
|
|
34
|
+
<li><a class="dropdown-item rounded-1" href="#" data-action="delete-content" role="menuitem">[[user:delete-content]]</a></li>
|
|
35
|
+
<li><a class="dropdown-item rounded-1" href="#" data-action="delete-all" role="menuitem">[[user:delete-all]]</a></li>
|
|
36
36
|
{{{ end }}}
|
|
37
37
|
</ul>
|
|
38
38
|
</div>
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
<!-- IMPORT partials/breadcrumbs.tpl -->
|
|
2
2
|
<div class="users">
|
|
3
|
-
|
|
3
|
+
<div id="users-container" class="users-container row row-cols-2 row-cols-md-3 row-cols-lg-4 row-cols-xl-5 g-4">
|
|
4
|
+
{{{ each users }}}
|
|
5
|
+
<!-- IMPORT partials/users/item.tpl -->
|
|
6
|
+
{{{ end }}}
|
|
7
|
+
</div>
|
|
4
8
|
|
|
5
9
|
<!-- IMPORT partials/paginator.tpl -->
|
|
6
10
|
</div>
|
package/templates/header.tpl
CHANGED
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
</head>
|
|
25
25
|
|
|
26
26
|
<body class="{bodyClass} skin-{{{if bootswatchSkin}}}{bootswatchSkin}{{{else}}}noskin{{{end}}}">
|
|
27
|
+
<a class="visually-hidden-focusable position-absolute top-0 start-0 p-3 bg-body" style="z-index: 1021;" href="#content">[[global:skip-to-content]]</a>
|
|
27
28
|
<div class="layout-container d-flex justify-content-between pb-4 pb-md-0">
|
|
28
29
|
<!-- IMPORT partials/sidebar-left.tpl -->
|
|
29
30
|
|
|
@@ -2,34 +2,34 @@
|
|
|
2
2
|
<button type="button" class="btn btn-light dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
3
3
|
<i class="fa fa-gear fa-fw"></i>
|
|
4
4
|
</button>
|
|
5
|
-
<ul class="dropdown-menu dropdown-menu-end p-1 text-sm account-sub-links">
|
|
5
|
+
<ul class="dropdown-menu dropdown-menu-end p-1 text-sm account-sub-links" role="menu">
|
|
6
6
|
<li>
|
|
7
|
-
<a class="dropdown-item rounded-1" href="{config.relative_path}/user/{userslug}/info">[[user:account-info]]</a>
|
|
7
|
+
<a class="dropdown-item rounded-1" href="{config.relative_path}/user/{userslug}/info" role="menuitem">[[user:account-info]]</a>
|
|
8
8
|
</li>
|
|
9
9
|
{{{ if (canBan || canMute) }}}
|
|
10
10
|
<li role="separator" class="dropdown-divider"></li>
|
|
11
11
|
{{{ end }}}
|
|
12
12
|
{{{ if canBan }}}
|
|
13
13
|
<li class="{{{ if banned }}}hide{{{ end }}}">
|
|
14
|
-
<a class="dropdown-item rounded-1" component="account/ban" href="#">[[user:ban-account]]</a>
|
|
14
|
+
<a class="dropdown-item rounded-1" component="account/ban" href="#" role="menuitem">[[user:ban-account]]</a>
|
|
15
15
|
</li>
|
|
16
16
|
<li class="{{{ if !banned }}}hide{{{ end }}}">
|
|
17
|
-
<a class="dropdown-item rounded-1" component="account/unban" href="#">[[user:unban-account]]</a>
|
|
17
|
+
<a class="dropdown-item rounded-1" component="account/unban" href="#" role="menuitem">[[user:unban-account]]</a>
|
|
18
18
|
</li>
|
|
19
19
|
{{{ end }}}
|
|
20
20
|
{{{ if canMute }}}
|
|
21
21
|
<li class="{{{ if muted }}}hide{{{ end }}}">
|
|
22
|
-
<a class="dropdown-item rounded-1" component="account/mute" href="#">[[user:mute-account]]</a>
|
|
22
|
+
<a class="dropdown-item rounded-1" component="account/mute" href="#" role="menuitem">[[user:mute-account]]</a>
|
|
23
23
|
</li>
|
|
24
24
|
<li class="{{{ if !muted }}}hide{{{ end }}}">
|
|
25
|
-
<a class="dropdown-item rounded-1" component="account/unmute" href="#">[[user:unmute-account]]</a>
|
|
25
|
+
<a class="dropdown-item rounded-1" component="account/unmute" href="#" role="menuitem">[[user:unmute-account]]</a>
|
|
26
26
|
</li>
|
|
27
27
|
{{{ end }}}
|
|
28
28
|
{{{ if isAdmin }}}
|
|
29
29
|
<li>
|
|
30
|
-
<a component="account/delete-account" href="#" class="dropdown-item rounded-1">[[user:delete-account-as-admin]]</a>
|
|
31
|
-
<a component="account/delete-content" href="#" class="dropdown-item rounded-1">[[user:delete-content]]</a>
|
|
32
|
-
<a component="account/delete-all" href="#" class="dropdown-item rounded-1">[[user:delete-all]]</a>
|
|
30
|
+
<a component="account/delete-account" href="#" class="dropdown-item rounded-1" role="menuitem">[[user:delete-account-as-admin]]</a>
|
|
31
|
+
<a component="account/delete-content" href="#" class="dropdown-item rounded-1" role="menuitem">[[user:delete-content]]</a>
|
|
32
|
+
<a component="account/delete-all" href="#" class="dropdown-item rounded-1" role="menuitem">[[user:delete-all]]</a>
|
|
33
33
|
</li>
|
|
34
34
|
{{{ end }}}
|
|
35
35
|
</ul>
|
|
@@ -74,11 +74,11 @@
|
|
|
74
74
|
<div class="btn-group flex-fill">
|
|
75
75
|
<a {{{ if hasPrivateChat }}}component="account/chat"{{{ else }}}component="account/new-chat"{{{ end }}} href="#" class="btn btn-light" role="button">[[user:chat]]</a>
|
|
76
76
|
{{{ if hasPrivateChat}}}
|
|
77
|
-
<button type="button" class="btn btn-light dropdown-toggle flex-0" data-bs-toggle="dropdown">
|
|
77
|
+
<button type="button" class="btn btn-light dropdown-toggle flex-0" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
78
78
|
<i class="fa fa-caret-down"></i>
|
|
79
79
|
</button>
|
|
80
80
|
<ul class="dropdown-menu dropdown-menu-end p-1 text-sm" role="menu">
|
|
81
|
-
<li><a class="dropdown-item rounded-1" href="#" component="account/new-chat">[[user:new-chat-with, {username}]]</a></li>
|
|
81
|
+
<li><a class="dropdown-item rounded-1" href="#" component="account/new-chat" role="menuitem"s>[[user:new-chat-with, {username}]]</a></li>
|
|
82
82
|
</ul>
|
|
83
83
|
{{{ end }}}
|
|
84
84
|
</div>
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
</a>
|
|
10
10
|
</div>
|
|
11
11
|
<div class="post-content text-xs text-break line-clamp-sm-2 lh-sm position-relative flex-fill">
|
|
12
|
-
<a class="stretched-link" href="{config.relative_path}/topic/{./topic.slug}{{{ if ./index }}}/{./index}{{{ end }}}"></a>
|
|
12
|
+
<a class="stretched-link" href="{config.relative_path}/topic/{./topic.slug}{{{ if ./index }}}/{./index}{{{ end }}}" aria-label="[[global:lastpost]]"></a>
|
|
13
13
|
{./content}
|
|
14
14
|
</div>
|
|
15
15
|
</div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<button type="button" class="btn-ghost-sm ff-secondary d-flex gap-2 dropdown-toggle" data-bs-toggle="dropdown">
|
|
1
|
+
<button type="button" class="btn-ghost-sm ff-secondary d-flex gap-2 dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
2
2
|
{{{ if selectedCategory }}}
|
|
3
3
|
<span class="category-item d-inline-flex align-items-center gap-1">
|
|
4
4
|
{buildCategoryIcon(selectedCategory, "18px", "rounded-circle")}
|
|
@@ -13,14 +13,14 @@
|
|
|
13
13
|
</div>
|
|
14
14
|
<ul component="category/list" class="dropdown-menu p-1 text-sm category-dropdown-menu" role="menu">
|
|
15
15
|
<li role="presentation" class="category" data-cid="all">
|
|
16
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="
|
|
16
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem" href="{{{ if allCategoriesUrl }}}{config.relative_path}/{allCategoriesUrl}{{{ else }}}#{{{ end }}}">
|
|
17
17
|
<div class="flex-grow-1">[[unread:all-categories]]</div>
|
|
18
18
|
<i component="category/select/icon" class="flex-shrink-0 fa fa-fw fa-check {{{if selectedCategory}}}invisible{{{end}}}"></i>
|
|
19
19
|
</a>
|
|
20
20
|
</li>
|
|
21
21
|
{{{each categoryItems}}}
|
|
22
22
|
<li role="presentation" class="category {{{ if ./disabledClass }}}disabled{{{ end }}}" data-cid="{./cid}" data-parent-cid="{./parentCid}" data-name="{./name}">
|
|
23
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2 {{{ if ./disabledClass }}}disabled{{{ end }}}" role="
|
|
23
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2 {{{ if ./disabledClass }}}disabled{{{ end }}}" role="menuitem" href="#">
|
|
24
24
|
{./level}
|
|
25
25
|
<span component="category-markup" class="flex-grow-1" style="{{{ if ./match }}}font-weight: bold;{{{end}}}">
|
|
26
26
|
<div class="category-item d-inline-flex align-items-center gap-1">
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<button type="button" class="btn-ghost-sm ff-secondary d-flex gap-2 dropdown-toggle" data-bs-toggle="dropdown">
|
|
1
|
+
<button type="button" class="btn-ghost-sm ff-secondary d-flex gap-2 dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
2
2
|
<span component="category-selector-selected">
|
|
3
3
|
{{{ if (selectedCategory && !showCategorySelectLabel) }}}
|
|
4
4
|
<span class="category-item d-inline-flex align-items-center gap-1">
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
</div>
|
|
17
17
|
<ul component="category/list" class="dropdown-menu p-1 text-sm category-dropdown-menu" role="menu">
|
|
18
18
|
<li component="category/no-matches" role="presentation" class="category hidden">
|
|
19
|
-
<a class="dropdown-item rounded-1" role="
|
|
19
|
+
<a class="dropdown-item rounded-1" role="menuitem">[[search:no-matches]]</a>
|
|
20
20
|
</li>
|
|
21
21
|
{{{ each categoryItems }}}
|
|
22
22
|
<li role="presentation" class="category {{{ if ./disabledClass }}}disabled {{{ end }}}" data-cid="{./cid}" data-name="{./name}" data-parent-cid="{./parentCid}">
|
|
23
|
-
<a class="dropdown-item rounded-1 {{{ if ./disabledClass }}}disabled{{{ end }}}" role="
|
|
23
|
+
<a class="dropdown-item rounded-1 {{{ if ./disabledClass }}}disabled{{{ end }}}" role="menuitem" href="#">{./level}
|
|
24
24
|
<span component="category-markup" style="{{{ if ./match }}}font-weight: bold;{{{end}}}">
|
|
25
25
|
<div class="category-item d-inline-flex align-items-center gap-1">
|
|
26
26
|
{{{ if ./icon }}}
|
|
@@ -1,29 +1,39 @@
|
|
|
1
1
|
<div class="btn-group bottom-sheet" component="thread/sort">
|
|
2
|
-
<button class="btn-ghost-sm ff-secondary d-flex gap-2 dropdown-toggle" data-bs-toggle="dropdown" type="button">
|
|
2
|
+
<button class="btn-ghost-sm ff-secondary d-flex gap-2 dropdown-toggle" data-bs-toggle="dropdown" type="button" aria-haspopup="true" aria-expanded="false">
|
|
3
3
|
<i class="fa fa-fw fa-arrow-down-wide-short text-primary"></i>
|
|
4
4
|
<span class="visible-md-inline visible-lg-inline fw-semibold">[[topic:sort-by]]</span>
|
|
5
5
|
</button>
|
|
6
6
|
|
|
7
|
-
<ul class="dropdown-menu p-1 text-sm">
|
|
8
|
-
<li
|
|
9
|
-
<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
</
|
|
20
|
-
<li
|
|
21
|
-
<
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
7
|
+
<ul class="dropdown-menu p-1 text-sm" role="menu">
|
|
8
|
+
<li>
|
|
9
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" href="#" data-sort="newest_to_oldest" role="menuitem">
|
|
10
|
+
<span class="flex-grow-1">[[topic:newest-to-oldest]]</span>
|
|
11
|
+
<i class="flex-shrink-0 fa fa-fw text-muted"></i>
|
|
12
|
+
</a>
|
|
13
|
+
</li>
|
|
14
|
+
<li>
|
|
15
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" href="#" data-sort="oldest_to_newest" role="menuitem">
|
|
16
|
+
<span class="flex-grow-1">[[topic:oldest-to-newest]]</span>
|
|
17
|
+
<i class="flex-shrink-0 fa fa-fw text-muted"></i>
|
|
18
|
+
</a>
|
|
19
|
+
</li>
|
|
20
|
+
<li>
|
|
21
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" href="#" data-sort="most_posts" role="menuitem">
|
|
22
|
+
<span class="flex-grow-1">[[topic:most-posts]]</span>
|
|
23
|
+
<i class="flex-shrink-0 fa fa-fw text-muted"></i>
|
|
24
|
+
</a>
|
|
25
|
+
</li>
|
|
26
|
+
<li>
|
|
27
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" href="#" data-sort="most_votes" role="menuitem">
|
|
28
|
+
<span class="flex-grow-1">[[topic:most-votes]]</span>
|
|
29
|
+
<i class="flex-shrink-0 fa fa-fw text-muted"></i>
|
|
30
|
+
</a>
|
|
31
|
+
</li>
|
|
32
|
+
<li>
|
|
33
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" href="#" data-sort="most_views" role="menuitem">
|
|
34
|
+
<span class="flex-grow-1">[[topic:most-views]]</span>
|
|
35
|
+
<i class="flex-shrink-0 fa fa-fw text-muted"></i>
|
|
36
|
+
</a>
|
|
37
|
+
</li>
|
|
28
38
|
</ul>
|
|
29
39
|
</div>
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
{{{ if showTopicTools }}}
|
|
2
2
|
<div class="btn-group thread-tools bottom-sheet">
|
|
3
|
-
<button class="btn-ghost-sm ff-secondary d-flex gap-2 dropdown-toggle" data-bs-toggle="dropdown" type="button">
|
|
3
|
+
<button class="btn-ghost-sm ff-secondary d-flex gap-2 dropdown-toggle" data-bs-toggle="dropdown" type="button" aria-haspopup="true" aria-expanded="false">
|
|
4
4
|
<i class="fa fa-fw fa-gear text-primary"></i>
|
|
5
5
|
<span class="visible-md-inline visible-lg-inline fw-semibold">[[topic:thread-tools.title]]</span>
|
|
6
6
|
<span component="topic/selected/badge" class="badge rounded-pill bg-secondary"></span>
|
|
7
7
|
</button>
|
|
8
|
-
<ul class="dropdown-menu p-1 text-sm">
|
|
8
|
+
<ul class="dropdown-menu p-1 text-sm" role="menu">
|
|
9
9
|
<li>
|
|
10
|
-
<a component="topic/mark-unread-for-all" href="#" class="dropdown-item rounded-1 d-flex align-items-center gap-2">
|
|
10
|
+
<a component="topic/mark-unread-for-all" href="#" class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem">
|
|
11
11
|
<i class="fa fa-fw text-muted fa-inbox"></i> [[topic:thread-tools.markAsUnreadForAll]]
|
|
12
12
|
</a>
|
|
13
13
|
</li>
|
|
14
14
|
<li>
|
|
15
|
-
<a component="topic/pin" href="#" class="dropdown-item rounded-1 d-flex align-items-center gap-2">
|
|
15
|
+
<a component="topic/pin" href="#" class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem">
|
|
16
16
|
<i class="fa fa-fw text-muted fa-thumb-tack"></i> [[topic:thread-tools.pin]]
|
|
17
17
|
</a>
|
|
18
18
|
</li>
|
|
19
19
|
<li>
|
|
20
|
-
<a component="topic/unpin" href="#" class="hidden dropdown-item rounded-1">
|
|
20
|
+
<a component="topic/unpin" href="#" class="hidden dropdown-item rounded-1" role="menuitem">
|
|
21
21
|
<i class="fa fa-fw text-muted fa-thumb-tack fa-rotate-90"></i> [[topic:thread-tools.unpin]]
|
|
22
22
|
</a>
|
|
23
23
|
</li>
|
|
24
24
|
|
|
25
25
|
<li>
|
|
26
|
-
<a component="topic/lock" href="#" class="dropdown-item rounded-1 d-flex align-items-center gap-2">
|
|
26
|
+
<a component="topic/lock" href="#" class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem">
|
|
27
27
|
<i class="fa fa-fw text-muted fa-lock"></i> [[topic:thread-tools.lock]]
|
|
28
28
|
</a>
|
|
29
29
|
</li>
|
|
30
30
|
<li>
|
|
31
|
-
<a component="topic/unlock" href="#" class="hidden dropdown-item rounded-1 d-flex align-items-center gap-2">
|
|
31
|
+
<a component="topic/unlock" href="#" class="hidden dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem">
|
|
32
32
|
<i class="fa fa-fw text-muted fa-unlock"></i> [[topic:thread-tools.unlock]]
|
|
33
33
|
</a>
|
|
34
34
|
</li>
|
|
@@ -36,25 +36,25 @@
|
|
|
36
36
|
<li class="dropdown-divider"></li>
|
|
37
37
|
|
|
38
38
|
<li>
|
|
39
|
-
<a component="topic/move" href="#" class="dropdown-item rounded-1 d-flex align-items-center gap-2">
|
|
39
|
+
<a component="topic/move" href="#" class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem">
|
|
40
40
|
<i class="fa fa-fw text-muted fa-arrows"></i> [[topic:thread-tools.move]]
|
|
41
41
|
</a>
|
|
42
42
|
</li>
|
|
43
43
|
{{{if template.category}}}
|
|
44
44
|
<li>
|
|
45
|
-
<a component="topic/move-all" href="#" class="dropdown-item rounded-1 d-flex align-items-center gap-2">
|
|
45
|
+
<a component="topic/move-all" href="#" class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem">
|
|
46
46
|
<i class="fa fa-fw text-muted fa-arrows"></i> [[topic:thread-tools.move-all]]
|
|
47
47
|
</a>
|
|
48
48
|
</li>
|
|
49
49
|
{{{end}}}
|
|
50
50
|
<li>
|
|
51
|
-
<a component="topic/merge" href="#" class="dropdown-item rounded-1 d-flex align-items-center gap-2">
|
|
51
|
+
<a component="topic/merge" href="#" class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem">
|
|
52
52
|
<i class="fa fa-fw text-muted fa-code-fork"></i> [[topic:thread-tools.merge]]
|
|
53
53
|
</a>
|
|
54
54
|
</li>
|
|
55
55
|
|
|
56
56
|
<li>
|
|
57
|
-
<a component="topic/tag" href="#" class="dropdown-item rounded-1 d-flex align-items-center gap-2">
|
|
57
|
+
<a component="topic/tag" href="#" class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem">
|
|
58
58
|
<i class="fa fa-fw text-muted fa-tag"></i> [[topic:thread-tools.tag]]
|
|
59
59
|
</a>
|
|
60
60
|
</li>
|
|
@@ -62,24 +62,24 @@
|
|
|
62
62
|
<li class="dropdown-divider"></li>
|
|
63
63
|
|
|
64
64
|
<li>
|
|
65
|
-
<a component="topic/delete" href="#" class="dropdown-item rounded-1 d-flex align-items-center gap-2">
|
|
65
|
+
<a component="topic/delete" href="#" class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem">
|
|
66
66
|
<i class="fa fa-fw text-muted fa-trash-o"></i> [[topic:thread-tools.delete]]
|
|
67
67
|
</a>
|
|
68
68
|
</li>
|
|
69
69
|
<li>
|
|
70
|
-
<a component="topic/restore" href="#" class="hidden dropdown-item rounded-1">
|
|
70
|
+
<a component="topic/restore" href="#" class="hidden dropdown-item rounded-1" role="menuitem">
|
|
71
71
|
<i class="fa fa-fw text-muted fa-history"></i> [[topic:thread-tools.restore]]
|
|
72
72
|
</a>
|
|
73
73
|
</li>
|
|
74
74
|
<li>
|
|
75
|
-
<a component="topic/purge" href="#" class="hidden dropdown-item rounded-1">
|
|
75
|
+
<a component="topic/purge" href="#" class="hidden dropdown-item rounded-1" role="menuitem">
|
|
76
76
|
<i class="fa fa-fw text-muted fa-eraser"></i> [[topic:thread-tools.purge]]
|
|
77
77
|
</a>
|
|
78
78
|
</li>
|
|
79
79
|
|
|
80
80
|
{{{each thread_tools}}}
|
|
81
81
|
<li>
|
|
82
|
-
<a href="#" class="dropdown-item rounded-1 d-flex align-items-center gap-2 {thread_tools.class}">
|
|
82
|
+
<a href="#" class="dropdown-item rounded-1 d-flex align-items-center gap-2 {thread_tools.class}" role="menuitem">
|
|
83
83
|
<i class="fa fa-fw {thread_tools.icon}"></i>
|
|
84
84
|
{thread_tools.title}</a>
|
|
85
85
|
</li>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{{{ if config.loggedIn }}}
|
|
2
2
|
<div class="btn-group bottom-sheet" component="topic/watch">
|
|
3
|
-
<button class="btn-ghost-sm ff-secondary d-flex gap-2 dropdown-toggle" data-bs-toggle="dropdown" type="button">
|
|
3
|
+
<button class="btn-ghost-sm ff-secondary d-flex gap-2 dropdown-toggle" data-bs-toggle="dropdown" type="button" aria-haspopup="true" aria-expanded="false">
|
|
4
4
|
<span component="category/watching/menu" {{{ if !./isWatched }}}class="hidden"{{{ end }}}><i class="fa fa-fw fa-bell-o text-primary"></i><span class="visible-md-inline visible-lg-inline fw-semibold"> [[category:watching]]</span></span>
|
|
5
5
|
|
|
6
6
|
<span component="category/tracking/menu" {{{ if !./isTracked }}}class="hidden"{{{ end }}}><i class="fa fa-fw fa-inbox text-primary"></i><span class="visible-md-inline visible-lg-inline fw-semibold"> [[category:tracking]]</span></span>
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
<span component="category/ignoring/menu" {{{ if !./isIgnored }}}class="hidden"{{{ end }}}><i class="fa fa-fw fa-eye-slash text-primary"></i><span class="visible-md-inline visible-lg-inline fw-semibold"> [[category:ignoring]]</span></span>
|
|
11
11
|
</button>
|
|
12
12
|
|
|
13
|
-
<ul class="dropdown-menu p-1 text-sm {{{ if template.account/categories }}}dropdown-menu-end{{{ end }}}">
|
|
13
|
+
<ul class="dropdown-menu p-1 text-sm {{{ if template.account/categories }}}dropdown-menu-end{{{ end }}}" role="menu">
|
|
14
14
|
<li>
|
|
15
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2 p-2" href="#" component="category/watching" data-state="watching">
|
|
15
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2 p-2" href="#" component="category/watching" data-state="watching" role="menuitem">
|
|
16
16
|
<div class="flex-grow-1 d-flex flex-column">
|
|
17
17
|
<span class="d-flex align-items-center gap-2">
|
|
18
18
|
<i class="flex-shrink-0 fa fa-fw text-muted fa-bell-o"></i>
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
</li>
|
|
26
26
|
|
|
27
27
|
<li>
|
|
28
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2 p-2" href="#" component="category/tracking" data-state="tracking">
|
|
28
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2 p-2" href="#" component="category/tracking" data-state="tracking" role="menuitem">
|
|
29
29
|
<div class="flex-grow-1 d-flex flex-column">
|
|
30
30
|
<span class="d-flex align-items-center gap-2">
|
|
31
31
|
<i class="flex-shrink-0 fa fa-fw text-muted fa-inbox"></i>
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
</li>
|
|
39
39
|
|
|
40
40
|
<li>
|
|
41
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2 p-2" href="#" component="category/notwatching" data-state="notwatching">
|
|
41
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2 p-2" href="#" component="category/notwatching" data-state="notwatching" role="menuitem">
|
|
42
42
|
<div class="flex-grow-1 d-flex flex-column">
|
|
43
43
|
<span class="d-flex align-items-center gap-2">
|
|
44
44
|
<i class="flex-shrink-0 fa fa-fw text-muted fa-clock-o"></i>
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
</li>
|
|
52
52
|
|
|
53
53
|
<li>
|
|
54
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2 p-2" href="#" component="category/ignoring" data-state="ignoring">
|
|
54
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2 p-2" href="#" component="category/ignoring" data-state="ignoring" role="menuitem">
|
|
55
55
|
<div class="flex-grow-1 d-flex flex-column">
|
|
56
56
|
<span class="d-flex align-items-center gap-2">
|
|
57
57
|
<i class="flex-shrink-0 fa fa-fw text-muted fa-eye-slash"></i>
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
<button class="filter-btn btn btn-light btn-sm border" data-bs-toggle="dropdown" autocomplete="off" aria-haspopup="true" aria-expanded="false" disabled="disabled">
|
|
3
3
|
<span class="filter-label">[[flags:bulk-actions]]</span>
|
|
4
4
|
</button>
|
|
5
|
-
<ul class="dropdown-menu dropdown-menu-end p-1 text-sm">
|
|
6
|
-
<li><a href="#" class="dropdown-item rounded-1" data-action="bulk-assign">[[flags:assign-to-me]]</a></li>
|
|
7
|
-
<li><a href="#" class="dropdown-item rounded-1" data-action="bulk-mark-resolved">[[flags:bulk-resolve]]</a></li>
|
|
5
|
+
<ul class="dropdown-menu dropdown-menu-end p-1 text-sm" role="menu">
|
|
6
|
+
<li><a href="#" class="dropdown-item rounded-1" data-action="bulk-assign" role="menuitem">[[flags:assign-to-me]]</a></li>
|
|
7
|
+
<li><a href="#" class="dropdown-item rounded-1" data-action="bulk-mark-resolved" role="menuitem">[[flags:bulk-resolve]]</a></li>
|
|
8
8
|
</ul>
|
|
9
9
|
</div>
|