nodebb-theme-harmony 0.0.3 → 0.0.4

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-harmony",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "nbbpm": {
5
5
  "compatibility": "^3.0.0"
6
6
  },
@@ -5,12 +5,16 @@
5
5
  {{{ each rooms }}}
6
6
  <li class="{{{ if ./unread }}}unread{{{ end }}} dropdown-item rounded-1 p-2 d-flex gap-2 pointer" data-roomid="{./roomId}">
7
7
  <div class="main-avatar">
8
- {{{ each ./users}}}
9
- {{{ if @first }}}
10
- <!-- IMPORT partials/chats/user.tpl -->
11
- {{{ end }}}
12
- {{{ end }}}
13
- {{{ if !./users.length}}}
8
+ {{{ if ./users.length }}}
9
+ {{{ if ./groupChat}}}
10
+ <div class="position-relative" style="width:32px; height:32px;">
11
+ <a class="text-decoration-none position-absolute top-0" style="left: 8px;" href="{config.relative_path}/user/{./users.1.userslug}">{buildAvatar(./users.1, "24px", true)}</a>
12
+ <a class="text-decoration-none position-absolute start-0" style="top: 8px;" href="{config.relative_path}/user/{./users.0.userslug}" >{buildAvatar(./users.0, "24px", true)}</a>
13
+ </div>
14
+ {{{ else }}}
15
+ <a href="{config.relative_path}/user/{./users.0.userslug}" class="text-decoration-none">{buildAvatar(./users.0, "32px", true)}</a>
16
+ {{{ end }}}
17
+ {{{ else }}}
14
18
  <span class="avatar avatar-rounded text-bg-warning" component="avatar/icon" style="--avatar-size: 32px;">?</span>
15
19
  {{{ end }}}
16
20
  </div>
@@ -20,10 +24,12 @@
20
24
  {{{ if !./lastUser.uid }}}
21
25
  <span>[[modules:chat.no-users-in-room]]</span>
22
26
  {{{ else }}}
23
- {./lastUser.username}
27
+ {{{ if ./roomName }}}{./roomName}{{{ else }}}{./usernames}{{{ end }}}
24
28
  {{{ end }}}
25
29
  </div>
26
30
  <div class="teaser-content text-sm line-clamp-3">
31
+ <a href="#" class="text-decoration-none">{buildAvatar(./teaser.user, "14px", true)}</a>
32
+ <strong class="text-xs fw-semibold teaser-username">{./teaser.user.username}:</strong>
27
33
  {./teaser.content}
28
34
  </div>
29
35
  <div class="teaser-timestamp notification-chat-controls text-muted text-xs">{./teaser.timeagoLong}</div>