nodebb-theme-persona 13.2.31 → 13.2.33
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
CHANGED
package/templates/category.tpl
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
<div class="category {{{if widgets.sidebar.length }}}col-lg-9 col-sm-12{{{ else }}}col-lg-12{{{ end }}}">
|
|
9
9
|
<!-- IMPORT partials/category/subcategory.tpl -->
|
|
10
10
|
|
|
11
|
+
{{{ if (topics.length || privileges.topics:create) }}}
|
|
11
12
|
<div class="topic-list-header sticky-top btn-toolbar justify-content-between py-2 mb-2 flex-nowrap">
|
|
12
13
|
<div class="d-flex gap-1 align-items-stretch">
|
|
13
14
|
{{{ if privileges.topics:create }}}
|
|
@@ -28,15 +29,14 @@
|
|
|
28
29
|
<!-- IMPORT partials/category/tools.tpl -->
|
|
29
30
|
</div>
|
|
30
31
|
</div>
|
|
32
|
+
{{{ end }}}
|
|
31
33
|
|
|
32
|
-
{{{ if !topics.length }}}
|
|
33
|
-
{{{ if privileges.topics:create }}}
|
|
34
|
+
{{{ if (!topics.length && privileges.topics:create)}}}
|
|
34
35
|
<hr class="visible-xs" />
|
|
35
36
|
<div class="alert alert-warning" id="category-no-topics">
|
|
36
37
|
[[category:no_topics]]
|
|
37
38
|
</div>
|
|
38
39
|
{{{ end }}}
|
|
39
|
-
{{{ end }}}
|
|
40
40
|
|
|
41
41
|
<!-- IMPORT partials/topics_list.tpl -->
|
|
42
42
|
|
|
@@ -82,6 +82,10 @@
|
|
|
82
82
|
|
|
83
83
|
<!-- IF canEdit -->
|
|
84
84
|
<li><a class="dropdown-item d-flex justify-content-between align-items-center" href="{config.relative_path}/user/{userslug}/categories">[[user:watched_categories]] <span class="badge bg-secondary rounded-pill ms-2" title="{counts.categoriesWatched}">{formattedNumber(counts.categoriesWatched)}</span></a></li>
|
|
85
|
+
{{{ if isSelf }}}
|
|
86
|
+
<li><a class="dropdown-item d-flex justify-content-between align-items-center" href="{config.relative_path}/user/{userslug}/tags">
|
|
87
|
+
[[user:watched-tags]] <span class="badge bg-secondary rounded-pill ms-2" title="{counts.tagsWatched}">{formattedNumber(counts.tagsWatched)}</span></a></li>
|
|
88
|
+
{{{ end }}}
|
|
85
89
|
<li><a class="dropdown-item d-flex justify-content-between align-items-center" href="{config.relative_path}/user/{userslug}/bookmarks">[[user:bookmarks]] <span class="badge bg-secondary rounded-pill ms-2" title="{counts.bookmarks}">{formattedNumber(counts.bookmarks)}</span></a></li>
|
|
86
90
|
<li><a class="dropdown-item d-flex justify-content-between align-items-center" href="{config.relative_path}/user/{userslug}/watched">[[user:watched]] <span class="badge bg-secondary rounded-pill ms-2" title="{counts.watched}">{formattedNumber(counts.watched)}</span></a></li>
|
|
87
91
|
<li><a class="dropdown-item d-flex justify-content-between align-items-center" href="{config.relative_path}/user/{userslug}/ignored">[[user:ignored]] <span class="badge bg-secondary rounded-pill ms-2" title="{counts.ignored}">{formattedNumber(counts.ignored)}</span></a></li>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{{{ if config.loggedIn }}}
|
|
2
|
+
<div class="btn-group bottom-sheet" component="tag/watch"
|
|
3
|
+
data-bs-toggle="tooltip">
|
|
4
|
+
<button class="btn btn-outline-secondary dropdown-toggle" data-bs-toggle="dropdown" type="button">
|
|
5
|
+
<span component="tag/following/menu" {{{ if !isFollowing }}}class="hidden"{{{ end }}}>
|
|
6
|
+
<i class="fa fa-fw fa-bell-o"></i>
|
|
7
|
+
<span class="d-none d-md-inline">[[tags:watching]]</span>
|
|
8
|
+
</span>
|
|
9
|
+
<span component="tag/not-following/menu" {{{ if isFollowing }}}class="hidden"{{{ end }}}>
|
|
10
|
+
<i class="fa fa-fw fa-bell-slash-o"></i>
|
|
11
|
+
<span class="d-none d-md-inline">[[tags:not-watching]]</span>
|
|
12
|
+
</span>
|
|
13
|
+
</button>
|
|
14
|
+
<ul class="dropdown-menu dropdown-menu-end">
|
|
15
|
+
<li>
|
|
16
|
+
<a class="dropdown-item d-flex" href="#" component="tag/following">
|
|
17
|
+
<span><i component="tag/following/check" class="fa fa-fw {{{ if isFollowing }}}fa-check{{{ end }}}"></i></span>
|
|
18
|
+
<div class="d-flex flex-column">
|
|
19
|
+
<span><i class="fa fa-fw fa-bell-o"></i> [[tags:watching]]</span>
|
|
20
|
+
<p class="help-text text-muted"><small>[[tags:watching.description]]</small></p>
|
|
21
|
+
</div>
|
|
22
|
+
</a>
|
|
23
|
+
</li>
|
|
24
|
+
|
|
25
|
+
<li>
|
|
26
|
+
<a class="dropdown-item d-flex" href="#" component="tag/not-following">
|
|
27
|
+
<span><i component="tag/not-following/check" class="fa fa-fw {{{ if !isFollowing }}}fa-check{{{ end }}}"></i></span>
|
|
28
|
+
<div class="d-flex flex-column">
|
|
29
|
+
<span><i class="fa fa-fw fa-bell-slash-o"></i> [[tags:not-watching]]</span>
|
|
30
|
+
<p class="help-text text-muted"><small>[[tags:not-watching.description]]</small></p>
|
|
31
|
+
</div>
|
|
32
|
+
</a>
|
|
33
|
+
</li>
|
|
34
|
+
</ul>
|
|
35
|
+
</div>
|
|
36
|
+
{{{ end }}}
|
package/templates/tag.tpl
CHANGED