nodebb-theme-persona 14.2.28 → 14.2.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.
- package/package-lock.json +2802 -0
- package/package.json +1 -1
- package/templates/partials/categories/link.tpl +10 -10
- package/templates/partials/header/notifications.tpl +6 -1
- package/templates/partials/notifications_list.tpl +3 -3
- package/templates/partials/quick-category-search-results.tpl +1 -1
- package/templates/world.tpl +4 -0
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
<!-- IF ../isSection -->
|
|
2
|
-
{../name}
|
|
3
|
-
<!-- ELSE -->
|
|
4
|
-
<!-- IF ../link -->
|
|
5
|
-
<a href="{../link}" itemprop="url">
|
|
6
|
-
<!-- ELSE -->
|
|
7
|
-
<a href="{config.relative_path}/category/{../slug}" itemprop="url">
|
|
8
|
-
<!-- ENDIF ../link -->
|
|
9
|
-
{../name}
|
|
10
|
-
</a>
|
|
1
|
+
<!-- IF ../isSection -->
|
|
2
|
+
{../name}
|
|
3
|
+
<!-- ELSE -->
|
|
4
|
+
<!-- IF ../link -->
|
|
5
|
+
<a href="{../link}" itemprop="url">
|
|
6
|
+
<!-- ELSE -->
|
|
7
|
+
<a href="{config.relative_path}/category/{../slug}" itemprop="url">
|
|
8
|
+
<!-- ENDIF ../link -->
|
|
9
|
+
{../name}
|
|
10
|
+
</a>
|
|
11
11
|
<!-- ENDIF ../isSection -->
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
<a data-bs-toggle="dropdown" href="#" role="button" class="nav-link position-relative" aria-haspopup="true" aria-expanded="false" aria-label="[[global:header.notifications]]">
|
|
1
|
+
<a data-bs-toggle="dropdown" data-bs-autoclose="outside" href="#" role="button" class="nav-link position-relative" aria-haspopup="true" aria-expanded="false" aria-label="[[global:header.notifications]]">
|
|
2
2
|
<i component="notifications/icon" class="fa fa-fw {{{ if unreadCount.notification}}}fa-bell{{{ else }}}fa-bell-o{{{ end }}} unread-count" data-content="{unreadCount.notification}"></i>
|
|
3
3
|
</a>
|
|
4
4
|
|
|
5
5
|
<ul class="notifications-dropdown dropdown-menu dropdown-menu-end p-1 shadow" role="menu">
|
|
6
|
+
<li>
|
|
7
|
+
<button type="button" class="btn btn-ghost btn-sm fw-bold" data-filter="all">All</button>
|
|
8
|
+
<button type="button" class="btn btn-ghost btn-sm" data-filter="unread">Unread</button>
|
|
9
|
+
</li>
|
|
10
|
+
<li class="dropdown-divider"></li>
|
|
6
11
|
<li>
|
|
7
12
|
<div component="notifications/list" class="list-container notification-list overscroll-behavior-contain pe-1 ff-base ghost-scrollbar">
|
|
8
13
|
<div class="mb-2 p-1">
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<li data-cid="{./cid}" class="d-flex flex-column gap-1">
|
|
13
13
|
<div class="btn btn-ghost btn-sm ff-secondary d-flex gap-2 align-items-center rounded-1 text-start text-reset d-block text-truncate px-2 py-1 position-relative">
|
|
14
14
|
<div class="flex-shrink-0">{buildCategoryIcon(@value, "40px", "rounded-circle")}</div>
|
|
15
|
-
<div class="flex-grow-1">
|
|
15
|
+
<div class="flex-grow-1" style="min-width:0;">
|
|
16
16
|
<a class="stretched-link" href="{config.relative_path}/category/{./slug}"></a>
|
|
17
17
|
<span class="quick-search-title fw-semibold text-sm">
|
|
18
18
|
{./name}
|
package/templates/world.tpl
CHANGED
|
@@ -70,6 +70,7 @@
|
|
|
70
70
|
<div class="col-lg-8 col-sm-12">
|
|
71
71
|
{{{ if posts.length }}}
|
|
72
72
|
<div class="topic-list-header sticky-top btn-toolbar justify-content-end align-items-center px-1 py-2 mb-2 flex-nowrap">
|
|
73
|
+
{{{ if config.loggedIn }}}
|
|
73
74
|
<div class="dropdown bottom-sheet">
|
|
74
75
|
<button class="btn btn-ghost btn-sm ff-secondary d-flex gap-2 align-items-center dropdown-toggle" data-bs-toggle="dropdown">
|
|
75
76
|
<i class="fa fa-fw fa-arrow-down-wide-short text-primary"></i>
|
|
@@ -77,6 +78,8 @@
|
|
|
77
78
|
</button>
|
|
78
79
|
<ul class="dropdown-menu" id="sort-options">
|
|
79
80
|
<li><a class="dropdown-item" href="{config.relative_path}/world">[[world:latest]]</a></li>
|
|
81
|
+
<li><a class="dropdown-item" href="{config.relative_path}/world?local=1">[[world:latest-local]]</a></li>
|
|
82
|
+
<li><a class="dropdown-item" href="{config.relative_path}/world?all=1">[[world:latest-all]]</a></li>
|
|
80
83
|
<li><a class="dropdown-item" href="{config.relative_path}/world?sort=popular&term=day">[[world:popular-day]]</a></li>
|
|
81
84
|
<li><a class="dropdown-item" href="{config.relative_path}/world?sort=popular&term=week">[[world:popular-week]]</a></li>
|
|
82
85
|
<li><a class="dropdown-item" href="{config.relative_path}/world?sort=popular&term=month">[[world:popular-month]]</a></li>
|
|
@@ -84,6 +87,7 @@
|
|
|
84
87
|
<li><a class="dropdown-item" href="{config.relative_path}/world?sort=popular&term=alltime">[[world:popular-alltime]]</a></li>
|
|
85
88
|
</ul>
|
|
86
89
|
</div>
|
|
90
|
+
{{{ end }}}
|
|
87
91
|
<a class="btn btn-ghost btn-sm ff-secondary d-flex gap-2 align-items-center fw-semibold" id="world-help" href="#">
|
|
88
92
|
<i class="fa fa-question text-primary"></i>
|
|
89
93
|
<span class="visible-md-inline visible-lg-inline">[[world:help]]</span>
|