nodebb-theme-persona 13.2.24 → 13.2.25
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
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{{{ each messages }}}
|
|
2
|
+
<li component="chat/message" class="chat-message mx-2 pe-2 {{{ if messages.deleted }}} deleted{{{ end }}} {{{ if messages.pinned}}} pinned{{{ end }}} border-top pt-3" data-mid="{messages.messageId}" data-uid="{messages.fromuid}" data-self="{messages.self}" data-timestamp="{messages.timestamp}" data-username="{messages.fromUser.username}" data-index="{./index}">
|
|
3
|
+
|
|
4
|
+
{{{ if messages.parent }}}
|
|
5
|
+
<!-- IMPORT partials/chats/parent.tpl -->
|
|
6
|
+
{{{ end }}}
|
|
7
|
+
|
|
8
|
+
<div class="message-header lh-1 d-flex align-items-center gap-2 text-sm pb-2">
|
|
9
|
+
<a href="{config.relative_path}/user/{messages.fromUser.userslug}" class="text-decoration-none">{buildAvatar(messages.fromUser, "18px", true, "not-responsive")}</a>
|
|
10
|
+
<span class="chat-user fw-semibold"><a href="{config.relative_path}/user/{messages.fromUser.userslug}">{messages.fromUser.displayname}</a></span>
|
|
11
|
+
|
|
12
|
+
<span class="chat-timestamp text-muted timeago" title="{messages.timestampISO}"></span>
|
|
13
|
+
</div>
|
|
14
|
+
<div class="message-body-wrapper hover-parent">
|
|
15
|
+
<div component="chat/message/body" class="message-body ps-0 py-0 overflow-auto text-break">
|
|
16
|
+
{messages.content}
|
|
17
|
+
</div>
|
|
18
|
+
<div component="chat/message/controls" class="position-relative">
|
|
19
|
+
<div class="d-flex border shadow-sm controls position-absolute bg-body hover-d-block end-0" style="bottom:1rem;">
|
|
20
|
+
{{{ if (isAdminOrGlobalMod || isOwner )}}}
|
|
21
|
+
<button class="btn btn-sm btn-link" data-action="pin" title="[[modules:chat.pin-message]]"><i class="fa fa-thumbtack"></i></button>
|
|
22
|
+
<button class="btn btn-sm btn-link" data-action="unpin" title="[[modules:chat.unpin-message]]"><i class="fa fa-thumbtack fa-rotate-90"></i></button>
|
|
23
|
+
{{{ end }}}
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
</li>
|
|
28
|
+
{{{ end }}}
|
|
@@ -6,34 +6,5 @@
|
|
|
6
6
|
<div class="text-xs fw-semibold text-muted">[[modules:chat.no-pinned-messages]]</div>
|
|
7
7
|
</div>
|
|
8
8
|
|
|
9
|
-
<ul component="chat/messages/pinned" class="chat-content list-unstyled d-flex flex-column gap-1 p-1 overflow-auto">
|
|
10
|
-
{{{ each messages }}}
|
|
11
|
-
<li component="chat/message" class="chat-message mx-2 pe-2 {{{ if messages.deleted }}} deleted{{{ end }}} {{{ if messages.pinned}}} pinned{{{ end }}} border-top pt-3" data-mid="{messages.messageId}" data-uid="{messages.fromuid}" data-self="{messages.self}" data-timestamp="{messages.timestamp}" data-username="{messages.fromUser.username}" data-index="{./index}">
|
|
12
|
-
|
|
13
|
-
{{{ if messages.parent }}}
|
|
14
|
-
<!-- IMPORT partials/chats/parent.tpl -->
|
|
15
|
-
{{{ end }}}
|
|
16
|
-
|
|
17
|
-
<div class="message-header lh-1 d-flex align-items-center gap-2 text-sm pb-2">
|
|
18
|
-
<a href="{config.relative_path}/user/{messages.fromUser.userslug}" class="text-decoration-none">{buildAvatar(messages.fromUser, "18px", true, "not-responsive")}</a>
|
|
19
|
-
<span class="chat-user fw-semibold"><a href="{config.relative_path}/user/{messages.fromUser.userslug}">{messages.fromUser.displayname}</a></span>
|
|
20
|
-
|
|
21
|
-
<span class="chat-timestamp text-muted timeago" title="{messages.timestampISO}"></span>
|
|
22
|
-
</div>
|
|
23
|
-
<div class="message-body-wrapper hover-parent">
|
|
24
|
-
<div component="chat/message/body" class="message-body ps-0 py-0 overflow-auto text-break">
|
|
25
|
-
{messages.content}
|
|
26
|
-
</div>
|
|
27
|
-
<div component="chat/message/controls" class="position-relative">
|
|
28
|
-
<div class="d-flex border shadow-sm controls position-absolute bg-body hover-d-block end-0" style="bottom:1rem;">
|
|
29
|
-
{{{ if (isAdminOrGlobalMod || isOwner )}}}
|
|
30
|
-
<button class="btn btn-sm btn-link" data-action="pin" title="[[modules:chat.pin-message]]"><i class="fa fa-thumbtack"></i></button>
|
|
31
|
-
<button class="btn btn-sm btn-link" data-action="unpin" title="[[modules:chat.unpin-message]]"><i class="fa fa-thumbtack fa-rotate-90"></i></button>
|
|
32
|
-
{{{ end }}}
|
|
33
|
-
</div>
|
|
34
|
-
</div>
|
|
35
|
-
</div>
|
|
36
|
-
</li>
|
|
37
|
-
{{{ end }}}
|
|
38
|
-
</ul>
|
|
9
|
+
<ul component="chat/messages/pinned" class="chat-content list-unstyled d-flex flex-column gap-1 p-1 overflow-auto"></ul>
|
|
39
10
|
</div>
|