nodebb-theme-harmony 1.2.11 → 1.2.13
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/overrides.scss +2 -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 +22 -22
- 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
|
@@ -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 selectedTag }}}
|
|
3
3
|
<span class="d-inline-flex align-items-center gap-1">
|
|
4
4
|
<i class="fa fa-fw fa-tags text-primary"></i>
|
|
@@ -12,16 +12,16 @@
|
|
|
12
12
|
<div component="tag/filter/search" class="hidden position-absolute top-0">
|
|
13
13
|
<input type="text" class="form-control form-control-sm" placeholder="[[search:type-to-search]]" autocomplete="off">
|
|
14
14
|
</div>
|
|
15
|
-
<ul component="tag/filter/list" class="dropdown-menu p-1 text-sm overflow-auto" role="menu" style="max-height: 500px;">
|
|
15
|
+
<ul component="tag/filter/list" class="dropdown-menu p-1 text-sm overflow-auto" role="menu" style="max-height: 500px;" role="menu">
|
|
16
16
|
<li role="presentation" data-tag="">
|
|
17
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="
|
|
17
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem" href="#">
|
|
18
18
|
<span class="flex-grow-1">[[tags:all-tags]]</span>
|
|
19
19
|
<i component="tag/select/icon" class="flex-shrink-0 fa fa-fw fa-check {{{if selectedTag }}}invisible{{{ end }}}"></i>
|
|
20
20
|
</a>
|
|
21
21
|
</li>
|
|
22
22
|
{{{ each tagItems }}}
|
|
23
23
|
<li role="presentation" data-tag="{./valueEscaped}">
|
|
24
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="
|
|
24
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem" href="#">
|
|
25
25
|
<span component="tag-markup" class="flex-grow-1">
|
|
26
26
|
<div class="d-inline-flex align-items-center gap-1">
|
|
27
27
|
{./valueEscaped}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{{{ if config.loggedIn }}}
|
|
2
2
|
<div class="btn-group bottom-sheet" component="tag/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="tag/following/menu" class="d-flex gap-2 align-items-center{{{ if !isFollowing }}} hidden{{{ end }}}">
|
|
5
5
|
<i class="flex-shrink-0 fa fa-fw fa-bell-o text-primary"></i>
|
|
6
6
|
<span class="d-none d-md-inline fw-semibold">[[tags:watching]]</span>
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
<span class="d-none d-md-inline fw-semibold">[[tags:not-watching]]</span>
|
|
12
12
|
</span>
|
|
13
13
|
</button>
|
|
14
|
-
<ul class="dropdown-menu p-1 text-sm">
|
|
14
|
+
<ul class="dropdown-menu p-1 text-sm" role="menu">
|
|
15
15
|
<li>
|
|
16
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2 p-2" href="#" component="tag/following">
|
|
16
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2 p-2" href="#" component="tag/following" role="menuitem">
|
|
17
17
|
<div class="flex-grow-1 d-flex flex-column">
|
|
18
18
|
<span class="d-flex align-items-center gap-2">
|
|
19
19
|
<i class="flex-shrink-0 fa fa-fw fa-bell-o"></i>
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
</li>
|
|
27
27
|
|
|
28
28
|
<li>
|
|
29
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2 p-2" href="#" component="tag/not-following">
|
|
29
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2 p-2" href="#" component="tag/not-following" role="menuitem">
|
|
30
30
|
<div class="flex-grow-1 d-flex flex-column">
|
|
31
31
|
<span class="d-flex align-items-center gap-2">
|
|
32
32
|
<i class="flex-shrink-0 fa fa-fw fa-bell-slash-o"></i>
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
{{{ end }}}
|
|
16
16
|
</div>
|
|
17
17
|
|
|
18
|
-
<a href="#" class="text-reset dropdown-toggle d-inline-block px-3 text-decoration-none" data-bs-toggle="dropdown">
|
|
18
|
+
<a href="#" class="text-reset dropdown-toggle d-inline-block px-3 text-decoration-none" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
19
19
|
<span class="d-inline-flex gap-2 align-items-center pagination-text position-relative fw-bold"></span>
|
|
20
20
|
</a>
|
|
21
21
|
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{{{ if posts.display_moderator_tools }}}
|
|
2
2
|
<li>
|
|
3
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" component="post/edit" role="menuitem"
|
|
3
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" component="post/edit" role="menuitem" href="#">
|
|
4
4
|
<span class="menu-icon"><i class="fa fa-fw text-muted fa-pencil"></i></span> [[topic:edit]]
|
|
5
5
|
</a>
|
|
6
6
|
</li>
|
|
7
7
|
<li {{{ if posts.deleted }}}hidden{{{ end }}}>
|
|
8
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" component="post/delete" role="menuitem"
|
|
8
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" component="post/delete" role="menuitem" href="#" class="{{{ if posts.deleted }}}hidden{{{ end }}}">
|
|
9
9
|
<span class="menu-icon"><i class="fa fa-fw text-muted fa-trash-o"></i></span> [[topic:delete]]
|
|
10
10
|
</a>
|
|
11
11
|
</li>
|
|
12
12
|
<li {{{ if !posts.deleted }}}hidden{{{ end }}}>
|
|
13
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" component="post/restore" role="menuitem"
|
|
13
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" component="post/restore" role="menuitem" href="#" class="{{{ if !posts.deleted }}}hidden{{{ end }}}">
|
|
14
14
|
<span class="menu-icon"><i class="fa fa-fw text-muted fa-history"></i></span> [[topic:restore]]
|
|
15
15
|
</a>
|
|
16
16
|
</li>
|
|
17
17
|
{{{ if posts.display_purge_tools }}}
|
|
18
18
|
<li {{{ if !posts.deleted }}}hidden{{{ end }}}>
|
|
19
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" component="post/purge" role="menuitem"
|
|
19
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" component="post/purge" role="menuitem" href="#" class="{{{ if !posts.deleted }}}hidden{{{ end }}}">
|
|
20
20
|
<span class="menu-icon"><i class="fa fa-fw text-muted fa-eraser"></i></span> [[topic:purge]]
|
|
21
21
|
</a>
|
|
22
22
|
</li>
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
{{{ if posts.display_move_tools }}}
|
|
26
26
|
<li>
|
|
27
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" component="post/move" role="menuitem"
|
|
27
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" component="post/move" role="menuitem" href="#">
|
|
28
28
|
<span class="menu-icon"><i class="fa fa-fw text-muted fa-arrows"></i></span> [[topic:move]]
|
|
29
29
|
</a>
|
|
30
30
|
</li>
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
|
|
33
33
|
{{{ if posts.display_change_owner_tools }}}
|
|
34
34
|
<li>
|
|
35
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" component="post/change-owner" role="menuitem"
|
|
35
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" component="post/change-owner" role="menuitem" href="#">
|
|
36
36
|
<span class="menu-icon"><i class="fa fa-fw text-muted fa-user"></i></span> [[topic:change-owner]]
|
|
37
37
|
</a>
|
|
38
38
|
</li>
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
|
|
41
41
|
{{{ if posts.ip }}}
|
|
42
42
|
<li>
|
|
43
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" component="post/copy-ip" role="menuitem"
|
|
43
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" component="post/copy-ip" role="menuitem" href="#" data-clipboard-text="{posts.ip}">
|
|
44
44
|
<span class="menu-icon" ><i class="fa fa-fw text-muted fa-copy"></i></span> [[topic:copy-ip]] {posts.ip}
|
|
45
45
|
</a>
|
|
46
46
|
</li>
|
|
47
47
|
{{{ if posts.display_ip_ban }}}
|
|
48
48
|
<li>
|
|
49
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" component="post/ban-ip" role="menuitem"
|
|
49
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" component="post/ban-ip" role="menuitem" href="#" data-ip="{posts.ip}">
|
|
50
50
|
<span class="menu-icon"><i class="fa fa-fw text-muted fa-ban"></i></span> [[topic:ban-ip]] {posts.ip}
|
|
51
51
|
</a>
|
|
52
52
|
</li>
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
|
|
57
57
|
{{{ each posts.tools }}}
|
|
58
58
|
<li {{{ if ./disabled }}}class="disabled" {{{ end }}}>
|
|
59
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" {{{ if ./action}}}component="{./action}"{{{ end }}} role="menuitem"
|
|
59
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" {{{ if ./action}}}component="{./action}"{{{ end }}} role="menuitem" href="{{{ if ./href }}}{./href}{{{ else }}}#{{{ end }}}">
|
|
60
60
|
<span class="menu-icon"><i class="fa fa-fw text-muted {./icon}"></i></span> {{./html}}
|
|
61
61
|
</a>
|
|
62
62
|
</li>
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
{{{ if !posts.deleted }}}
|
|
66
66
|
{{{ if posts.display_history}}}
|
|
67
67
|
<li>
|
|
68
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" component="post/view-history" role="menuitem"
|
|
68
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" component="post/view-history" role="menuitem" href="#">
|
|
69
69
|
<span class="menu-icon"><i class="fa fa-fw text-muted fa-history"></i></span> [[topic:view-history]]
|
|
70
70
|
</a>
|
|
71
71
|
</li>
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
|
|
74
74
|
{{{ if config.loggedIn }}}
|
|
75
75
|
<li>
|
|
76
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" component="post/bookmark" role="menuitem"
|
|
76
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" component="post/bookmark" role="menuitem" href="#" data-bookmarked="{posts.bookmarked}">
|
|
77
77
|
<span class="menu-icon">
|
|
78
78
|
<i component="post/bookmark/on" class="fa fa-fw text-muted fa-bookmark {{{ if !posts.bookmarked }}}hidden{{{ end }}}"></i>
|
|
79
79
|
<i component="post/bookmark/off" class="fa fa-fw text-muted fa-bookmark-o {{{ if posts.bookmarked }}}hidden{{{ end }}}"></i>
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
{{{ end }}}
|
|
86
86
|
|
|
87
87
|
<li>
|
|
88
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem"
|
|
88
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem" href="#" data-clipboard-text="{posts.absolute_url}">
|
|
89
89
|
<i class="fa fa-fw text-muted fa-link"></i> [[topic:copy-permalink]]
|
|
90
90
|
</a>
|
|
91
91
|
</li>
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
{{{ end }}}
|
|
97
97
|
<li class="d-flex gap-2 px-3">
|
|
98
98
|
{{{ each postSharing }}}
|
|
99
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center px-1 py-2 w-auto" role="menuitem" component="share/{./id}"
|
|
99
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center px-1 py-2 w-auto" role="menuitem" component="share/{./id}" href="#" title="{./name}"><i class="fa-fw text-muted {./class}"></i></a>
|
|
100
100
|
{{{ end }}}
|
|
101
101
|
</li>
|
|
102
102
|
{{{ end }}}
|
|
@@ -105,15 +105,15 @@
|
|
|
105
105
|
<li class="dropdown-divider"></li>
|
|
106
106
|
|
|
107
107
|
<li {{{ if posts.flags.flagged }}}hidden{{{ end }}}>
|
|
108
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" component="post/flag" role="menuitem"
|
|
108
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" component="post/flag" role="menuitem" href="#"><i class="fa fa-fw text-muted fa-flag"></i> [[topic:flag-post]]</a>
|
|
109
109
|
</li>
|
|
110
110
|
<li {{{ if !posts.flags.flagged }}}hidden{{{ end }}} class="disabled text-muted">
|
|
111
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" component="post/already-flagged" role="menuitem"
|
|
111
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" component="post/already-flagged" role="menuitem" href="#"><i class="fa fa-fw text-muted fa-flag"></i> [[topic:already-flagged]]</a>
|
|
112
112
|
</li>
|
|
113
113
|
|
|
114
114
|
{{{ if (!posts.selfPost && posts.uid) }}}
|
|
115
115
|
<li>
|
|
116
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" component="post/flagUser" role="menuitem"
|
|
116
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" component="post/flagUser" role="menuitem" href="#"><i class="fa fa-fw text-muted fa-flag"></i> [[topic:flag-user]]</a>
|
|
117
117
|
</li>
|
|
118
118
|
{{{ end }}}
|
|
119
119
|
{{{ end }}}
|
|
@@ -121,11 +121,11 @@
|
|
|
121
121
|
{{{ if posts.display_moderator_tools }}}
|
|
122
122
|
{{{ if posts.flags.exists }}}
|
|
123
123
|
<li>
|
|
124
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem"
|
|
124
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem" href="{config.relative_path}/flags/{posts.flags.flagId}"><i class="fa fa-fw text-muted fa-exclamation-circle"></i> [[topic:view-flag-report]]</a>
|
|
125
125
|
</li>
|
|
126
126
|
{{{ if (posts.flags.state == "open") }}}
|
|
127
127
|
<li>
|
|
128
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" component="post/flagResolve" data-flagId="{posts.flags.flagId}" role="menuitem"
|
|
128
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" component="post/flagResolve" data-flagId="{posts.flags.flagId}" role="menuitem" href="#"><i class="fa fa-fw text-muted fa-check"></i> [[topic:resolve-flag]]</a>
|
|
129
129
|
</li>
|
|
130
130
|
{{{ end }}}
|
|
131
131
|
{{{ end }}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<span component="post/tools" class="dropdown moderator-tools bottom-sheet d-inline-block {{{ if !./display_post_menu }}}hidden{{{ end }}}">
|
|
2
|
-
<a class="btn-ghost-sm ff-secondary dropdown-toggle d-block" href="#" data-bs-toggle="dropdown"><i class="fa fa-fw fa-ellipsis-v text-primary"></i></a>
|
|
2
|
+
<a class="btn-ghost-sm ff-secondary dropdown-toggle d-block" href="#" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" aria-label="[[topic:post-tools]]"><i class="fa fa-fw fa-ellipsis-v text-primary"></i></a>
|
|
3
3
|
<ul class="dropdown-menu dropdown-menu-end p-1 text-sm" role="menu">
|
|
4
4
|
<li class="dropdown-item placeholder-wave">
|
|
5
5
|
<div class="placeholder" style="width: 20px;"></div>
|
|
@@ -111,16 +111,16 @@
|
|
|
111
111
|
|
|
112
112
|
{{{ if !reputation:disabled }}}
|
|
113
113
|
<div class="d-flex votes align-items-center">
|
|
114
|
-
<a component="post/upvote" href="#" class="btn-ghost-sm {{{ if posts.upvoted }}}upvoted{{{ end }}}">
|
|
114
|
+
<a component="post/upvote" href="#" class="btn-ghost-sm {{{ if posts.upvoted }}}upvoted{{{ end }}}" title="[[topic:upvote-post]]">
|
|
115
115
|
<i class="fa fa-fw fa-chevron-up text-primary"></i>
|
|
116
116
|
</a>
|
|
117
117
|
|
|
118
118
|
<meta itemprop="upvoteCount" content="{posts.upvotes}">
|
|
119
119
|
<meta itemprop="downvoteCount" content="{posts.downvotes}">
|
|
120
|
-
<
|
|
120
|
+
<a href="#" class="d-inline-block px-2 mx-1 btn-ghost-sm ff-secondary" component="post/vote-count" data-votes="{posts.votes}" title="[[global:voters]]">{posts.votes}</a>
|
|
121
121
|
|
|
122
122
|
{{{ if !downvote:disabled }}}
|
|
123
|
-
<a component="post/downvote" href="#" class="btn-ghost-sm {{{ if posts.downvoted }}}downvoted{{{ end }}}">
|
|
123
|
+
<a component="post/downvote" href="#" class="btn-ghost-sm {{{ if posts.downvoted }}}downvoted{{{ end }}}" title="[[topic:downvote-post]]">
|
|
124
124
|
<i class="fa fa-fw fa-chevron-down text-primary"></i>
|
|
125
125
|
</a>
|
|
126
126
|
{{{ end }}}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
</div>
|
|
16
16
|
<div>
|
|
17
17
|
<div class="d-flex justify-content-end gap-2">
|
|
18
|
-
<button type="submit" component="topic/quickreply/expand" class="btn
|
|
18
|
+
<button type="submit" component="topic/quickreply/expand" class="btn-ghost-sm border"><i class="fa fa-expand"></i></button>
|
|
19
19
|
<button type="submit" component="topic/quickreply/button" class="btn btn-sm btn-primary">[[topic:post-quick-reply]]</button>
|
|
20
20
|
</div>
|
|
21
21
|
</div>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<div component="topic/reply/container" class="btn-group action-bar {{{ if !privileges.topics:reply }}}hidden{{{ end }}}">
|
|
2
2
|
<a href="{config.relative_path}/compose?tid={tid}" class="d-flex align-items-center btn btn-sm btn-primary px-3 fw-semibold " component="topic/reply" data-ajaxify="false" role="button"><i class="fa fa-reply d-sm-block d-md-none"></i><span class="d-none d-md-block"> [[topic:reply]]</span></a>
|
|
3
|
-
<button type="button" class="btn btn-sm btn-primary dropdown-toggle" data-bs-toggle="dropdown">
|
|
3
|
+
<button type="button" class="btn btn-sm btn-primary dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
4
4
|
<span class="caret"></span>
|
|
5
5
|
</button>
|
|
6
6
|
<ul class="dropdown-menu dropdown-menu-end p-1 text-sm" role="menu">
|
|
7
|
-
<li><a class="dropdown-item rounded-1" href="#" component="topic/reply-as-topic">[[topic:reply-as-topic]]</a></li>
|
|
7
|
+
<li><a class="dropdown-item rounded-1" href="#" component="topic/reply-as-topic" role="menuitem">[[topic:reply-as-topic]]</a></li>
|
|
8
8
|
</ul>
|
|
9
9
|
</div>
|
|
10
10
|
|
|
@@ -1,25 +1,28 @@
|
|
|
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"
|
|
2
|
+
<button class="btn-ghost-sm ff-secondary d-flex gap-2 dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
3
3
|
<span class="d-flex gap-2 align-items-center">
|
|
4
4
|
<i class="fa fa-fw fa-arrow-down-wide-short text-primary"></i>
|
|
5
5
|
<span class="d-none d-md-inline fw-semibold">[[topic:sort-by]]</span>
|
|
6
6
|
</span>
|
|
7
7
|
</button>
|
|
8
|
-
<ul class="dropdown-menu p-1 text-sm">
|
|
9
|
-
<li
|
|
10
|
-
<
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
<ul class="dropdown-menu p-1 text-sm" role="menu">
|
|
9
|
+
<li>
|
|
10
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" href="#" class="oldest_to_newest" data-sort="oldest_to_newest" role="menuitem">
|
|
11
|
+
<span class="flex-grow-1">[[topic:oldest-to-newest]]</span>
|
|
12
|
+
<i class="flex-shrink-0 fa fa-fw"></i>
|
|
13
|
+
</a>
|
|
13
14
|
</li>
|
|
14
|
-
<li
|
|
15
|
-
<
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
<li>
|
|
16
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" href="#" class="newest_to_oldest" data-sort="newest_to_oldest" role="menuitem">
|
|
17
|
+
<span class="flex-grow-1">[[topic:newest-to-oldest]]</span>
|
|
18
|
+
<i class="flex-shrink-0 fa fa-fw"></i>
|
|
19
|
+
</a>
|
|
18
20
|
</li>
|
|
19
|
-
<li
|
|
20
|
-
<
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
<li>
|
|
22
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" href="#" class="most_votes" data-sort="most_votes" role="menuitem">
|
|
23
|
+
<span class="flex-grow-1">[[topic:most-votes]]</span>
|
|
24
|
+
<i class="flex-shrink-0 fa fa-fw"></i>
|
|
25
|
+
</a>
|
|
23
26
|
</li>
|
|
24
27
|
</ul>
|
|
25
28
|
</div>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{{{ if privileges.view_thread_tools }}}
|
|
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="d-none d-md-inline fw-semibold">[[topic:thread-tools.title]]</span>
|
|
6
6
|
</button>
|
|
7
|
-
<ul class="dropdown-menu p-1 text-sm">
|
|
7
|
+
<ul class="dropdown-menu p-1 text-sm" role="menu">
|
|
8
8
|
<li class="placeholder-wave"><a class="dropdown-item d-flex gap-2" href="#"><div class="placeholder bg-secondary rounded-1" style="width: 1em;"></div><div class="placeholder bg-secondary rounded-1 col-8"></div></a></li>
|
|
9
9
|
<li class="placeholder-wave"><a class="dropdown-item d-flex gap-2" href="#"><div class="placeholder bg-secondary rounded-1" style="width: 1em;"></div><div class="placeholder bg-secondary rounded-1 col-8"></div></a></li>
|
|
10
10
|
<li class="placeholder-wave"><a class="dropdown-item d-flex gap-2" href="#"><div class="placeholder bg-secondary rounded-1" style="width: 1em;"></div><div class="placeholder bg-secondary rounded-1 col-8"></div></a></li>
|
|
@@ -1,33 +1,74 @@
|
|
|
1
1
|
{{{ if privileges.editable }}}
|
|
2
|
-
<li {{{ if locked }}}hidden{{{ end }}}
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
<
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
<li
|
|
2
|
+
<li {{{ if locked }}}hidden{{{ end }}}>
|
|
3
|
+
<a component="topic/lock" href="#" class="dropdown-item rounded-1 d-flex align-items-center gap-2 {{{ if locked }}}hidden{{{ end }}}" role="menuitem"><i class="fa fa-fw text-muted fa-lock"></i> [[topic:thread-tools.lock]]</a>
|
|
4
|
+
</li>
|
|
5
|
+
|
|
6
|
+
<li {{{ if !locked }}}hidden{{{ end }}}>
|
|
7
|
+
<a component="topic/unlock" href="#" class="dropdown-item rounded-1 d-flex align-items-center gap-2 {{{ if !locked }}}hidden{{{ end }}}" role="menuitem"><i class="fa fa-fw text-muted fa-unlock"></i> [[topic:thread-tools.unlock]]</a>
|
|
8
|
+
</li>
|
|
9
|
+
|
|
10
|
+
<li {{{ if pinned }}}hidden{{{ end }}}>
|
|
11
|
+
<a component="topic/pin" href="#" class="dropdown-item rounded-1 d-flex align-items-center gap-2 {{{ if pinned }}}hidden{{{ end }}}" role="menuitem"><i class="fa fa-fw text-muted fa-thumb-tack"></i> [[topic:thread-tools.pin]]</a>
|
|
12
|
+
</li>
|
|
13
|
+
|
|
14
|
+
<li {{{ if !pinned }}}hidden{{{ end }}}>
|
|
15
|
+
<a component="topic/unpin" href="#" class="dropdown-item rounded-1 d-flex align-items-center gap-2 {{{ if !pinned }}}hidden{{{ end }}}" role="menuitem"><i class="fa fa-fw text-muted fa-thumb-tack fa-rotate-90"></i> [[topic:thread-tools.unpin]]</a>
|
|
16
|
+
</li>
|
|
17
|
+
|
|
18
|
+
<li>
|
|
19
|
+
<a component="topic/move" href="#" class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem"><i class="fa fa-fw text-muted fa-arrows"></i> [[topic:thread-tools.move]]</a>
|
|
20
|
+
</li>
|
|
21
|
+
|
|
22
|
+
<li>
|
|
23
|
+
<a component="topic/merge" href="#" class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem"><i class="fa fa-fw text-muted fa-code-fork"></i> [[topic:thread-tools.merge]]</a>
|
|
24
|
+
</li>
|
|
25
|
+
|
|
26
|
+
<li>
|
|
27
|
+
<a component="topic/fork" href="#" class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem"><i class="fa fa-fw text-muted fa-code-fork"></i> [[topic:thread-tools.fork]]</a>
|
|
28
|
+
</li>
|
|
29
|
+
|
|
30
|
+
<li>
|
|
31
|
+
<a component="topic/tag" href="#" class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem"><i class="fa fa-fw text-muted fa-tag"></i> [[topic:thread-tools.tag]]</a>
|
|
32
|
+
</li>
|
|
33
|
+
|
|
11
34
|
{{{ if !scheduled }}}
|
|
12
|
-
<li
|
|
35
|
+
<li>
|
|
36
|
+
<a component="topic/move-posts" href="#" class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem"><i class="fa fa-fw text-muted fa-arrows"></i> [[topic:thread-tools.move-posts]]</a>
|
|
37
|
+
</li>
|
|
13
38
|
{{{ end }}}
|
|
14
|
-
|
|
39
|
+
|
|
40
|
+
<li>
|
|
41
|
+
<a component="topic/mark-unread-for-all" href="#" class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem"><i class="fa fa-fw text-muted fa-inbox"></i> [[topic:thread-tools.markAsUnreadForAll]]</a>
|
|
42
|
+
</li>
|
|
43
|
+
|
|
15
44
|
<li class="dropdown-divider"></li>
|
|
16
45
|
{{{ end }}}
|
|
17
46
|
|
|
18
47
|
{{{ if privileges.deletable }}}
|
|
19
|
-
<li {{{ if deleted }}}hidden{{{ end }}}
|
|
48
|
+
<li {{{ if deleted }}}hidden{{{ end }}}>
|
|
49
|
+
<a component="topic/delete" href="#" class="dropdown-item rounded-1 d-flex align-items-center gap-2 {{{ if deleted }}}hidden{{{ end }}}" role="menuitem"><i class="fa fa-fw text-muted fa-trash-o"></i> [[topic:thread-tools.delete]]</a>
|
|
50
|
+
</li>
|
|
51
|
+
|
|
20
52
|
{{{ if !scheduled }}}
|
|
21
|
-
<li {{{ if !deleted }}}hidden{{{ end }}}
|
|
53
|
+
<li {{{ if !deleted }}}hidden{{{ end }}}>
|
|
54
|
+
<a component="topic/restore" href="#" class="dropdown-item rounded-1 d-flex align-items-center gap-2 {{{ if !deleted }}}hidden{{{ end }}}" role="menuitem"><i class="fa fa-fw text-muted fa-history"></i> [[topic:thread-tools.restore]]</a>
|
|
55
|
+
</li>
|
|
22
56
|
{{{ end }}}
|
|
57
|
+
|
|
23
58
|
{{{ if privileges.purge }}}
|
|
24
|
-
<li {{{ if !deleted }}}hidden{{{ end }}}
|
|
59
|
+
<li {{{ if !deleted }}}hidden{{{ end }}}>
|
|
60
|
+
<a component="topic/purge" href="#" class="dropdown-item rounded-1 d-flex align-items-center gap-2 {{{ if !deleted }}}hidden{{{ end }}}" role="menuitem"><i class="fa fa-fw text-muted fa-eraser"></i> [[topic:thread-tools.purge]]</a>
|
|
61
|
+
</li>
|
|
25
62
|
{{{ end }}}
|
|
26
63
|
{{{ if privileges.isAdminOrMod }}}
|
|
27
|
-
<li
|
|
64
|
+
<li>
|
|
65
|
+
<a component="topic/delete/posts" href="#" class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem"><i class="fa fa-fw text-muted fa-trash-o"></i> [[topic:thread-tools.delete-posts]]</a>
|
|
66
|
+
</li>
|
|
28
67
|
{{{ end }}}
|
|
29
68
|
|
|
30
69
|
{{{ each thread_tools }}}
|
|
31
|
-
<li
|
|
70
|
+
<li>
|
|
71
|
+
<a href="#" class="dropdown-item rounded-1 d-flex align-items-center gap-2 {./class}" role="menuitem"><i class="fa fa-fw text-muted {./icon}"></i> {./title}</a>
|
|
72
|
+
</li>
|
|
32
73
|
{{{ end }}}
|
|
33
74
|
{{{ end }}}
|
|
@@ -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="topic/following/menu" class="d-flex gap-2 align-items-center{{{ if !isFollowing }}} hidden{{{ end }}}">
|
|
5
5
|
<i class="flex-shrink-0 fa fa-fw fa-bell-o text-primary"></i>
|
|
6
6
|
<span class="d-none d-md-inline fw-semibold">[[topic:watching]]</span>
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
<span class="d-none d-md-inline fw-semibold">[[topic:ignoring]]</span>
|
|
17
17
|
</span>
|
|
18
18
|
</button>
|
|
19
|
-
<ul class="dropdown-menu p-1 text-sm">
|
|
19
|
+
<ul class="dropdown-menu p-1 text-sm" role="menu">
|
|
20
20
|
<li>
|
|
21
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2 p-2" href="#" component="topic/following">
|
|
21
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2 p-2" href="#" component="topic/following" role="menuitem">
|
|
22
22
|
<div class="flex-grow-1 d-flex flex-column">
|
|
23
23
|
<span class="d-flex align-items-center gap-2">
|
|
24
24
|
<i class="flex-shrink-0 fa fa-fw fa-bell-o"></i>
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
</li>
|
|
32
32
|
|
|
33
33
|
<li>
|
|
34
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2 p-2" href="#" component="topic/not-following">
|
|
34
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2 p-2" href="#" component="topic/not-following" role="menuitem">
|
|
35
35
|
<div class="flex-grow-1 d-flex flex-column">
|
|
36
36
|
<span class="d-flex align-items-center gap-2">
|
|
37
37
|
<i class="flex-shrink-0 fa fa-fw fa-bell-slash-o"></i>
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
</li>
|
|
45
45
|
|
|
46
46
|
<li>
|
|
47
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2 p-2" href="#" component="topic/ignoring">
|
|
47
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2 p-2" href="#" component="topic/ignoring" role="menuitem">
|
|
48
48
|
<div class="flex-grow-1 d-flex flex-column">
|
|
49
49
|
<span class="d-flex align-items-center gap-2">
|
|
50
50
|
<i class="flex-shrink-0 fa fa-fw fa-eye-slash"></i>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<div class="btn-group bottom-sheet{{{ if !filters.length }}} hidden{{{ end }}}">
|
|
2
|
-
<button type="button" class="btn-ghost-sm ff-secondary d-flex gap-2 dropdown-toggle" data-bs-toggle="dropdown">
|
|
2
|
+
<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">
|
|
3
3
|
<i class="fa fa-fw fa-filter text-primary"></i>
|
|
4
4
|
<span class="visible-md-inline visible-lg-inline fw-semibold">{selectedFilter.name}</span>
|
|
5
5
|
</button>
|
|
6
6
|
<ul class="dropdown-menu p-1 text-sm" role="menu">
|
|
7
7
|
{{{each filters}}}
|
|
8
8
|
<li role="presentation" class="category {{{if filters.selected}}}selected{{{end}}}">
|
|
9
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="
|
|
9
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem" href="{config.relative_path}/{filters.url}">
|
|
10
10
|
<div class="flex-grow-1">{filters.name}</div>
|
|
11
11
|
<i class="flex-shrink-0 fa fa-fw {{{ if filters.selected }}}fa-check{{{ end }}}"></i>
|
|
12
12
|
</a>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<div class="btn-group bottom-sheet {{{ if !terms.length }}}hidden{{{ end }}}">
|
|
2
|
-
<button type="button" class="btn-ghost-sm ff-secondary d-flex gap-2 dropdown-toggle" data-bs-toggle="dropdown">
|
|
2
|
+
<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">
|
|
3
3
|
<i class="fa fa-fw fa-clock text-primary"></i>
|
|
4
4
|
<span class="visible-md-inline visible-lg-inline fw-semibold">{selectedTerm.name}</span>
|
|
5
5
|
</button>
|
|
6
6
|
<ul class="dropdown-menu p-1 text-sm" role="menu">
|
|
7
7
|
{{{each terms}}}
|
|
8
8
|
<li role="presentation" class="category">
|
|
9
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="
|
|
9
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem" href="{config.relative_path}/{terms.url}">
|
|
10
10
|
<div class="flex-grow-1">{terms.name}</div>
|
|
11
11
|
<i class="flex-shrink-0 fa fa-fw {{{ if terms.selected }}}fa-check{{{ end }}}"></i>
|
|
12
12
|
</a>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<button type="button" class="btn-ghost-sm ff-secondary dropdown-toggle" data-bs-toggle="dropdown">
|
|
1
|
+
<button type="button" class="btn-ghost-sm ff-secondary dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
2
2
|
{{{ if selectedUser }}}
|
|
3
3
|
<span class="fw-semibold">{buildAvatar(selectedUser, "20px", true, "not-responsive")} {selectedUser.username}</span>
|
|
4
4
|
{{{ else }}}
|
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
</button>
|
|
8
8
|
<ul class="dropdown-menu p-1 text-sm" role="menu">
|
|
9
9
|
<li role="presentation" class="user {{{ if !selectedUser}}}selected{{{end}}}">
|
|
10
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="
|
|
10
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem" href="{config.relative_path}/{allUsersUrl}">
|
|
11
11
|
<div class="flex-grow-1">[[users:all-users]]</div>
|
|
12
12
|
<i class="flex-shrink-0 fa fa-fw {{{ if !selectedUser }}}fa-check{{{ end }}}"></i>
|
|
13
13
|
</a>
|
|
14
14
|
</li>
|
|
15
15
|
{{{ each users }}}
|
|
16
16
|
<li role="presentation" class="user {{{ if ./selected}}}selected{{{end}}}">
|
|
17
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="
|
|
17
|
+
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem" href="{config.relative_path}/{./url}">
|
|
18
18
|
<div class="flex-grow-1 d-inline-flex gap-1 align-items-center">{buildAvatar(@value, "24px", true, "not-responsive")} {./username}</div>
|
|
19
19
|
<i class="flex-shrink-0 fa fa-fw {{{ if ./selected }}}fa-check{{{ end }}}"></i>
|
|
20
20
|
</a>
|
package/templates/post-queue.tpl
CHANGED
|
@@ -23,16 +23,16 @@
|
|
|
23
23
|
<button type="button" class="btn-ghost-sm ff-secondary dropdown-toggle" data-bs-toggle="dropdown" autocomplete="off" aria-haspopup="true" aria-expanded="false">
|
|
24
24
|
<i class="fa fa-clone text-primary"></i><span class="fw-semibold"> [[post-queue:bulk-actions]]</span>
|
|
25
25
|
</button>
|
|
26
|
-
<ul class="dropdown-menu p-1 text-sm dropdown-menu-end">
|
|
26
|
+
<ul class="dropdown-menu p-1 text-sm dropdown-menu-end" role="menu">
|
|
27
27
|
{{{ if canAccept }}}
|
|
28
|
-
<li><a class="dropdown-item rounded-1" href="#" data-action="accept-all">[[post-queue:accept-all]]</a></li>
|
|
29
|
-
<li><a class="dropdown-item rounded-1" href="#" data-action="accept-selected">[[post-queue:accept-selected]]</a></li>
|
|
28
|
+
<li><a class="dropdown-item rounded-1" href="#" data-action="accept-all" role="menuitem">[[post-queue:accept-all]]</a></li>
|
|
29
|
+
<li><a class="dropdown-item rounded-1" href="#" data-action="accept-selected" role="menuitem">[[post-queue:accept-selected]]</a></li>
|
|
30
30
|
<li class="dropdown-divider"></li>
|
|
31
|
-
<li><a class="dropdown-item rounded-1" href="#" data-action="reject-all">[[post-queue:reject-all]]</a></li>
|
|
32
|
-
<li><a class="dropdown-item rounded-1" href="#" data-action="reject-selected">[[post-queue:reject-selected]]</a></li>
|
|
31
|
+
<li><a class="dropdown-item rounded-1" href="#" data-action="reject-all" role="menuitem">[[post-queue:reject-all]]</a></li>
|
|
32
|
+
<li><a class="dropdown-item rounded-1" href="#" data-action="reject-selected" role="menuitem">[[post-queue:reject-selected]]</a></li>
|
|
33
33
|
{{{ else }}}
|
|
34
|
-
<li><a class="dropdown-item rounded-1" href="#" data-action="reject-all">[[post-queue:remove-all]]</a></li>
|
|
35
|
-
<li><a class="dropdown-item rounded-1" href="#" data-action="reject-selected">[[post-queue:remove-selected]]</a></li>
|
|
34
|
+
<li><a class="dropdown-item rounded-1" href="#" data-action="reject-all" role="menuitem">[[post-queue:remove-all]]</a></li>
|
|
35
|
+
<li><a class="dropdown-item rounded-1" href="#" data-action="reject-selected" role="menuitem">[[post-queue:remove-selected]]</a></li>
|
|
36
36
|
{{{ end }}}
|
|
37
37
|
</ul>
|
|
38
38
|
</div>
|
|
@@ -79,22 +79,22 @@
|
|
|
79
79
|
{{{ if ((privileges.ban || privileges.mute) || privileges.admin:users) }}}
|
|
80
80
|
<div class="ms-auto btn-group bottom-sheet">
|
|
81
81
|
<button href="#" class="btn btn-ghost-sm ff-secondary border text-xs dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">[[global:actions]]</button>
|
|
82
|
-
<ul class="dropdown-menu p-1 text-sm">
|
|
82
|
+
<ul class="dropdown-menu p-1 text-sm" role="menu">
|
|
83
83
|
{{{ if privileges.view:users:info }}}
|
|
84
|
-
<li><a class="dropdown-item rounded-1" href="{config.relative_path}/user/{./user.userslug}/info">[[user:account-info]]</a></li>
|
|
84
|
+
<li><a class="dropdown-item rounded-1" href="{config.relative_path}/user/{./user.userslug}/info" role="menuitem">[[user:account-info]]</a></li>
|
|
85
85
|
{{{ end }}}
|
|
86
86
|
{{{ if privileges.ban }}}
|
|
87
|
-
<li class="{{{ if target.user.banned }}}hidden{{{ end }}}"><a class="dropdown-item rounded-1" href="#" data-action="ban">[[user:ban-account]]</a></li>
|
|
88
|
-
<li class="{{{ if !target.user.banned }}}hidden{{{ end }}}"><a class="dropdown-item rounded-1" href="#" data-action="unban">[[user:unban-account]]</a></li>
|
|
87
|
+
<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>
|
|
88
|
+
<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>
|
|
89
89
|
{{{ end }}}
|
|
90
90
|
{{{ if privileges.mute}}}
|
|
91
|
-
<li class="{{{ if target.user.muted }}}hidden{{{ end }}}"><a class="dropdown-item rounded-1" href="#" data-action="mute">[[user:mute-account]]</a></li>
|
|
92
|
-
<li class="{{{ if !target.user.muted }}}hidden{{{ end }}}"><a class="dropdown-item rounded-1" href="#" data-action="unmute">[[user:unmute-account]]</a></li>
|
|
91
|
+
<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>
|
|
92
|
+
<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>
|
|
93
93
|
{{{ end }}}
|
|
94
94
|
{{{ if privileges.admin:users }}}
|
|
95
|
-
<li><a class="dropdown-item rounded-1" href="#" data-action="delete-account">[[user:delete-account-as-admin]]</a></li>
|
|
96
|
-
<li><a class="dropdown-item rounded-1" href="#" data-action="delete-content">[[user:delete-content]]</a></li>
|
|
97
|
-
<li><a class="dropdown-item rounded-1" href="#" data-action="delete-all">[[user:delete-all]]</a></li>
|
|
95
|
+
<li><a class="dropdown-item rounded-1" href="#" data-action="delete-account" role="menuitem">[[user:delete-account-as-admin]]</a></li>
|
|
96
|
+
<li><a class="dropdown-item rounded-1" href="#" data-action="delete-content" role="menuitem">[[user:delete-content]]</a></li>
|
|
97
|
+
<li><a class="dropdown-item rounded-1" href="#" data-action="delete-all" role="menuitem">[[user:delete-all]]</a></li>
|
|
98
98
|
{{{ end }}}
|
|
99
99
|
</ul>
|
|
100
100
|
</div>
|