@okjavis/nodebb-theme-javis 6.0.0 → 6.0.2
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/feed.tpl
CHANGED
|
@@ -26,20 +26,28 @@
|
|
|
26
26
|
<div class="col-lg-6 col-sm-12 ms-auto">
|
|
27
27
|
{{{ end }}}
|
|
28
28
|
|
|
29
|
-
<!--
|
|
30
|
-
<div class="d-flex justify-content-between py-2 mb-0 gap-1">
|
|
31
|
-
{{{ if
|
|
32
|
-
<
|
|
29
|
+
<!-- For You / Following tabs + filter -->
|
|
30
|
+
<div class="d-flex justify-content-between align-items-center py-2 mb-0 gap-1">
|
|
31
|
+
{{{ if loggedIn }}}
|
|
32
|
+
<div class="d-flex gap-1">
|
|
33
|
+
<a href="{config.relative_path}/feed" class="btn btn-ghost btn-sm ff-secondary fw-semibold {{{ if !showFollowed }}}active{{{ end }}}">For You</a>
|
|
34
|
+
<a href="{config.relative_path}/feed?users=followed" class="btn btn-ghost btn-sm ff-secondary fw-semibold {{{ if showFollowed }}}active{{{ end }}}">Following</a>
|
|
35
|
+
</div>
|
|
33
36
|
{{{ end }}}
|
|
37
|
+
<div class="d-flex align-items-center gap-1 ms-auto">
|
|
38
|
+
<!-- IMPORT partials/category/filter-dropdown-right.tpl -->
|
|
39
|
+
{{{ if canPost }}}
|
|
40
|
+
<button id="new_topic" class="btn btn-primary btn-sm d-none">[[category:new-topic-button]]</button>
|
|
41
|
+
{{{ end }}}
|
|
42
|
+
</div>
|
|
34
43
|
</div>
|
|
35
44
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
{{{
|
|
42
|
-
<div class="alert alert-warning text-center">[[feed:no-posts-found]] {{{ if !following.length }}}[[feed:are-you-following-anyone]] {{{ end }}}</div>
|
|
45
|
+
{{{ if !posts.length }}}
|
|
46
|
+
{{{ if showFollowed }}}
|
|
47
|
+
<div class="alert alert-info text-center">Follow some members to see their posts here.</div>
|
|
48
|
+
{{{ else }}}
|
|
49
|
+
<div class="alert alert-warning text-center">[[feed:no-posts-found]]</div>
|
|
50
|
+
{{{ end }}}
|
|
43
51
|
{{{ end }}}
|
|
44
52
|
|
|
45
53
|
<ul component="posts" class="list-unstyled" data-nextstart="{nextStart}">
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{{{ if !notifications.length }}}
|
|
2
|
+
<div class="no-notifs text-center p-4 d-flex flex-column">
|
|
3
|
+
<div class="p-4"><i class="fa-solid fa-wind fs-2 text-muted"></i></div>
|
|
4
|
+
<div class="text-xs fw-semibold text-muted">[[notifications:no-notifs]]</div>
|
|
5
|
+
</div>
|
|
6
|
+
{{{ end }}}
|
|
7
|
+
|
|
8
|
+
{{{ each notifications }}}
|
|
9
|
+
<div class="{./readClass}" data-nid="{./nid}" data-path="{./path}" {{{ if ./pid }}}data-pid="{./pid}"{{{ end }}}{{{ if ./tid }}}data-tid="{./tid}"{{{ end }}}>
|
|
10
|
+
<div class="d-flex gap-1 justify-content-between">
|
|
11
|
+
<div class="btn btn-ghost btn-sm d-flex gap-2 flex-grow-1 text-start align-items-start">
|
|
12
|
+
<a class="flex-grow-0 flex-shrink-0" href="{{{ if ./user.userslug}}}{config.relative_path}/user/{./user.userslug}{{{ else }}}#{{{ end }}}">
|
|
13
|
+
{{{ if (./image && ./from) }}}
|
|
14
|
+
<img class="avatar avatar-rounded" style="--avatar-size: 32px;" src="{./image}" onerror="this.onerror=null;this.style.display='none';this.nextElementSibling.classList.remove('hidden');" />
|
|
15
|
+
<div class="avatar avatar-rounded hidden" style="--avatar-size: 32px; background-color: {./user.icon:bgColor};">{./user.icon:text}</div>
|
|
16
|
+
{{{ else }}}
|
|
17
|
+
{{{ if ./icon }}}
|
|
18
|
+
<div class="avatar avatar-rounded" style="--avatar-size: 32px;"><i class="text-secondary fa {./icon}"></i></div>
|
|
19
|
+
{{{ else }}}
|
|
20
|
+
<div class="avatar avatar-rounded" style="--avatar-size: 32px; background-color: {./user.icon:bgColor};">{./user.icon:text}</div>
|
|
21
|
+
{{{ end }}}
|
|
22
|
+
{{{ end }}}
|
|
23
|
+
</a>
|
|
24
|
+
|
|
25
|
+
<div class="d-flex flex-grow-1 flex-column align-items-start position-relative">
|
|
26
|
+
<a href="{./path}" class="text-decoration-none d-inline-block text-reset text-break text-sm ff-sans stretched-link" component="notifications/item/link">
|
|
27
|
+
{./bodyShort}
|
|
28
|
+
</a>
|
|
29
|
+
<div class="text-xs text-muted">{{{ if ./timeagoLong }}}{./timeagoLong}{{{ else }}}<span class="timeago" title="{./datetimeISO}"></span>{{{ end }}}</div>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
<div>
|
|
33
|
+
{{{ if ./nid }}}
|
|
34
|
+
<button class="mark-read btn btn-ghost btn-sm d-flex align-items-center justify-content-center flex-grow-0 flex-shrink-0 p-1" style="width: 1.5rem; height: 1.5rem;">
|
|
35
|
+
<i class="unread fa fa-2xs fa-circle text-primary {{{ if ./read }}}hidden{{{ end }}}" aria-label="[[unread:mark-as-read]]"></i>
|
|
36
|
+
<i class="read fa fa-2xs fa-circle-o text-secondary {{{ if !./read }}}hidden{{{ end }}}" aria-label="[[unread:mark-as-unread]]"></i>
|
|
37
|
+
</button>
|
|
38
|
+
{{{ end }}}
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
{{{ if !@last }}}
|
|
43
|
+
<hr class="my-1" />
|
|
44
|
+
{{{ end }}}
|
|
45
|
+
{{{ end }}}
|