nodebb-theme-persona 15.2.8 → 15.2.10

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-theme-persona",
3
- "version": "15.2.8",
3
+ "version": "15.2.10",
4
4
  "nbbpm": {
5
5
  "compatibility": "^4.15.1"
6
6
  },
@@ -3,9 +3,9 @@
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">{{tx("notifications:all")}}</button>
8
- <button type="button" class="btn btn-ghost btn-sm" data-filter="unread">{{tx("unread:title")}}</button>
6
+ <li class="d-flex gap-1 align-items-center">
7
+ <button type="button" class="btn btn-ghost btn-sm {{{ if !unreadCount.notification }}}active{{{ end }}} px-3" data-filter="all">{{tx("notifications:all")}}</button>
8
+ <button type="button" class="btn btn-ghost btn-sm d-flex align-items-center gap-2 {{{ if unreadCount.notification }}}active{{{ end }}}" data-filter="unread">{{tx("unread:title")}} <span component="notifications/count" class="{{{ if !unreadCount.notification }}}hidden{{{ end }}}">{unreadCount.notification}</span></button>
9
9
  </li>
10
10
  <li class="dropdown-divider"></li>
11
11
  <li>
@@ -8,16 +8,9 @@
8
8
 
9
9
  <div class="clearfix post-header">
10
10
  <div class="icon float-start">
11
- <a href="<!-- IF posts.user.userslug -->{config.relative_path}/user/{posts.user.userslug}<!-- ELSE -->#<!-- ENDIF posts.user.userslug -->">
11
+ <a href="{{{ if posts.user.userslug }}}{config.relative_path}/user/{posts.user.userslug}{{{ else }}}#{{{ end }}}">
12
12
  {{buildAvatar(posts.user, "48px", true, "", "user/picture")}}
13
- {{{ if ./user.isLocal }}}
14
- <span component="user/status" class="position-absolute top-100 start-100 border border-white border-2 rounded-circle status {posts.user.status}"><span class="visually-hidden">{{tx(concat("global:", posts.user.status))}}</span></span>
15
- {{{ else }}}
16
- <span component="user/locality" class="position-absolute top-100 start-100 lh-1 border border-white border-2 rounded-circle small" title="[[global:remote-user]]">
17
- <span class="visually-hidden">{{tx("global:remote-user")}}</span>
18
- <i class="fa fa-globe"></i>
19
- </span>
20
- {{{ end }}}
13
+ <!-- IMPORT partials/topic/user-status.tpl -->
21
14
  </a>
22
15
  </div>
23
16
 
@@ -26,7 +19,7 @@
26
19
  <strong class="text-nowrap" itemprop="author" itemscope itemtype="https://schema.org/Person">
27
20
  <meta itemprop="name" content="{./user.username}">
28
21
  {{{ if ./user.userslug }}}<meta itemprop="url" content="{config.relative_path}/user/{./user.userslug}">{{{ end }}}
29
- <a href="<!-- IF posts.user.userslug -->{config.relative_path}/user/{posts.user.userslug}<!-- ELSE -->#<!-- ENDIF posts.user.userslug -->" data-username="{posts.user.username}" data-uid="{posts.user.uid}">{{txDisplayname(posts.user)}}</a>
22
+ <a href="{{{ if posts.user.userslug }}}{config.relative_path}/user/{posts.user.userslug}{{{ else }}}#{{{ end }}}" data-username="{posts.user.username}" data-uid="{posts.user.uid}">{{txDisplayname(posts.user)}}</a>
30
23
  </strong>
31
24
 
32
25
  {{{ each posts.user.selectedGroups }}}
@@ -0,0 +1,7 @@
1
+ {{{ if ./user.isLocal }}}
2
+ <span component="user/status" class="position-absolute top-100 start-100 border border-white border-2 rounded-circle status {posts.user.status}" data-dynamic-tooltip title="{{tx(concat("global:", posts.user.status))}}" aria-label="{{tx(concat("global:", posts.user.status))}}"></span>
3
+ {{{ else }}}
4
+ <span component="user/locality" class="position-absolute top-100 start-100 lh-1 border border-white border-2 rounded-circle small" data-dynamic-tooltip="" title="{{tx("global:remote-user")}}" aria-label="{{tx("global:remote-user")}}">
5
+ <i class="fa fa-globe"></i>
6
+ </span>
7
+ {{{ end }}}