nodebb-theme-harmony 1.0.0-beta.2 → 1.0.0-beta.21
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 +1 -1
- package/public/harmony.js +21 -21
- package/scss/chats.scss +7 -2
- package/scss/common.scss +16 -4
- package/scss/modules/composer.scss +0 -4
- package/scss/modules/cover.scss +1 -11
- package/scss/overrides.scss +2 -0
- package/scss/sidebar.scss +27 -2
- package/scss/topic.scss +22 -12
- package/templates/account/categories.tpl +0 -1
- package/templates/account/consent.tpl +62 -0
- package/templates/account/edit.tpl +1 -1
- package/templates/account/info.tpl +1 -18
- package/templates/account/sessions.tpl +1 -18
- package/templates/categories.tpl +1 -1
- package/templates/category.tpl +1 -2
- package/templates/chats.tpl +1 -1
- package/templates/flags/detail.tpl +0 -1
- package/templates/flags/list.tpl +1 -1
- package/templates/groups/details.tpl +20 -17
- package/templates/partials/account/header.tpl +10 -17
- package/templates/partials/account/session-list.tpl +18 -0
- package/templates/partials/categories/lastpost.tpl +1 -1
- package/templates/partials/{category-filter-content.tpl → category/filter-dropdown-content.tpl} +2 -2
- package/templates/partials/{category-selector-content.tpl → category/selector-dropdown-content.tpl} +1 -1
- package/templates/partials/category/subcategory.tpl +1 -1
- package/templates/partials/category/watch.tpl +28 -4
- package/templates/partials/chats/message-window.tpl +3 -2
- package/templates/partials/chats/message.tpl +1 -1
- package/templates/partials/flags/filters.tpl +1 -1
- package/templates/partials/groups/admin.tpl +1 -1
- package/templates/partials/mobile-footer.tpl +70 -62
- package/templates/partials/post_bar.tpl +5 -4
- package/templates/partials/posts_list_item.tpl +2 -2
- package/templates/partials/quick-search-results.tpl +1 -1
- package/templates/partials/sidebar/chats.tpl +5 -2
- package/templates/partials/sidebar/drafts.tpl +4 -4
- package/templates/partials/sidebar/notifications.tpl +3 -3
- package/templates/partials/sidebar/search-mobile.tpl +1 -1
- package/templates/partials/sidebar/user-menu.tpl +1 -1
- package/templates/partials/sidebar-left.tpl +3 -0
- package/templates/partials/topic/event.tpl +1 -1
- package/templates/partials/topic/navigation-post.tpl +5 -9
- package/templates/partials/topic/navigator-mobile.tpl +43 -0
- package/templates/partials/topic/post.tpl +2 -2
- package/templates/partials/topic/quickreply.tpl +3 -3
- package/templates/partials/topic/watch.tpl +28 -4
- package/templates/partials/topic-list-bar.tpl +6 -6
- package/templates/partials/topics_list.tpl +4 -4
- package/templates/partials/users/filter-dropdown-content.tpl +20 -0
- package/templates/popular.tpl +1 -1
- package/templates/post-queue.tpl +112 -0
- package/templates/recent.tpl +1 -1
- package/templates/top.tpl +1 -1
- package/templates/topic.tpl +2 -2
- package/templates/unread.tpl +1 -1
- package/templates/partials/category-filter-right.tpl +0 -5
- package/templates/partials/category-filter.tpl +0 -3
- package/templates/partials/category-selector-right.tpl +0 -5
- package/templates/partials/category-selector.tpl +0 -3
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
<div class="avatar">
|
|
15
15
|
<a href="{{{ if ./user.userslug }}}{config.relative_path}/user/{./user.userslug}{{{ else }}}#{{{ end }}}" class="text-decoration-none">
|
|
16
16
|
{{{ if ./thumbs.length }}}
|
|
17
|
-
<img src="{./thumbs.0.url}" class="not-responsive" />
|
|
17
|
+
<img class="topic-thumb rounded-1" width="80" height="auto" src="{./thumbs.0.url}" class="not-responsive" />
|
|
18
18
|
{{{ else }}}
|
|
19
|
-
{buildAvatar(./user, "40px", true, "not-responsive")}
|
|
19
|
+
{buildAvatar(./user, "40px", true, "avatar-tooltip not-responsive")}
|
|
20
20
|
{{{ end }}}
|
|
21
21
|
</a>
|
|
22
22
|
</div>
|
|
23
23
|
</div>
|
|
24
24
|
<div class="d-flex flex-column gap-1">
|
|
25
|
-
<h2 component="topic/header" class="title mb-1 {{{ if showSelect }}}me-4{{{ end }}} me-md-0 text-md fw-bold">
|
|
25
|
+
<h2 component="topic/header" class="text-break title mb-1 {{{ if showSelect }}}me-4{{{ end }}} me-md-0 text-md fw-bold">
|
|
26
26
|
{{{ if topics.noAnchor }}}
|
|
27
27
|
<span>{./title}</span>
|
|
28
28
|
{{{ else }}}
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
{{{ else }}}
|
|
104
104
|
{{{ if ./teaser.pid }}}
|
|
105
105
|
<p class="ps-3 mb-0 lh-1">
|
|
106
|
-
<a href="{config.relative_path}/user/{./teaser.user.userslug}" class="text-decoration-none">{buildAvatar(./teaser.user, "18px", true, "not-responsive")}</a>
|
|
106
|
+
<a href="{config.relative_path}/user/{./teaser.user.userslug}" class="text-decoration-none">{buildAvatar(./teaser.user, "18px", true, "avatar-tooltip not-responsive")}</a>
|
|
107
107
|
<a class="permalink text-muted timeago text-xs" href="{config.relative_path}/topic/{./slug}/{./teaser.index}" title="{./teaser.timestampISO}">
|
|
108
108
|
</a>
|
|
109
109
|
</p>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<button type="button" class="btn-ghost-sm dropdown-toggle" data-bs-toggle="dropdown">
|
|
2
|
+
{{{ if selectedUser }}}
|
|
3
|
+
<span class="fw-semibold">{buildAvatar(selectedUser, "20px", true, "not-responsive")} {selectedUser.username}</span>
|
|
4
|
+
{{{ else }}}
|
|
5
|
+
<span class="fw-semibold">[[users:all-users]]</span>
|
|
6
|
+
{{{ end }}} <span class="caret"></span>
|
|
7
|
+
</button>
|
|
8
|
+
<ul class="dropdown-menu" role="menu">
|
|
9
|
+
<li role="presentation" class="user {{{ if !selectedUser}}}selected{{{end}}}">
|
|
10
|
+
<a class="dropdown-item" role="menu-item" href="{config.relative_path}/{allUsersUrl}"><i class="fa fa-fw {{{ if !selectedUser }}}fa-check{{{ end }}}"></i>[[users:all-users]]</a>
|
|
11
|
+
</li>
|
|
12
|
+
{{{ each users }}}
|
|
13
|
+
<li role="presentation" class="user {{{ if ./selected}}}selected{{{end}}}">
|
|
14
|
+
<a class="dropdown-item" role="menu-item" href="{config.relative_path}/{./url}">
|
|
15
|
+
<i class="fa fa-fw {{{ if ./selected }}}fa-check{{{ end }}}"></i>
|
|
16
|
+
<div class="d-inline-flex gap-1 align-items-center">{buildAvatar(@value, "24px", true, "not-responsive")} {./username}</div>
|
|
17
|
+
</a>
|
|
18
|
+
</li>
|
|
19
|
+
{{{end}}}
|
|
20
|
+
</ul>
|
package/templates/popular.tpl
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<!-- IMPORT partials/topic-list-bar.tpl -->
|
|
8
8
|
<div class="category">
|
|
9
9
|
{{{ if !topics.length }}}
|
|
10
|
-
<div class="alert alert-
|
|
10
|
+
<div class="alert alert-info mt-3" id="category-no-topics">[[recent:no_popular_topics]]</div>
|
|
11
11
|
{{{ end }}}
|
|
12
12
|
|
|
13
13
|
<!-- IMPORT partials/topics_list.tpl -->
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
<div class="btn-toolbar justify-content-end">
|
|
2
|
+
{{{ if (!singlePost && posts.length) }}}
|
|
3
|
+
<div class="me-2">
|
|
4
|
+
<!-- IMPORT partials/category/filter-dropdown-right.tpl -->
|
|
5
|
+
</div>
|
|
6
|
+
<div class="btn-group bottom-sheet" component="post-queue/bulk-actions">
|
|
7
|
+
<button type="button" class="btn-ghost-sm dropdown-toggle" data-bs-toggle="dropdown" autocomplete="off" aria-haspopup="true" aria-expanded="false">
|
|
8
|
+
<i class="fa fa-clone"></i><span class="fw-semibold"> [[post-queue:bulk-actions]]</span>
|
|
9
|
+
</button>
|
|
10
|
+
<ul class="dropdown-menu dropdown-menu-end">
|
|
11
|
+
{{{ if canAccept }}}
|
|
12
|
+
<li><a class="dropdown-item" href="#" data-action="accept-all">[[post-queue:accept-all]]</a></li>
|
|
13
|
+
<li><a class="dropdown-item" href="#" data-action="accept-selected">[[post-queue:accept-selected]]</a></li>
|
|
14
|
+
<li class="dropdown-divider"></li>
|
|
15
|
+
<li><a class="dropdown-item" href="#" data-action="reject-all">[[post-queue:reject-all]]</a></li>
|
|
16
|
+
<li><a class="dropdown-item" href="#" data-action="reject-selected">[[post-queue:reject-selected]]</a></li>
|
|
17
|
+
{{{ else }}}
|
|
18
|
+
<li><a class="dropdown-item" href="#" data-action="reject-all">[[post-queue:remove-all]]</a></li>
|
|
19
|
+
<li><a class="dropdown-item" href="#" data-action="reject-selected">[[post-queue:remove-selected]]</a></li>
|
|
20
|
+
{{{ end }}}
|
|
21
|
+
</ul>
|
|
22
|
+
</div>
|
|
23
|
+
{{{ end }}}
|
|
24
|
+
</div>
|
|
25
|
+
<hr/>
|
|
26
|
+
<div class="row">
|
|
27
|
+
<div class="col-12">
|
|
28
|
+
<div class="post-queue preventSlideout posts-list">
|
|
29
|
+
{{{ if !posts.length }}}
|
|
30
|
+
{{{ if isAdmin }}}
|
|
31
|
+
<div class="card card-body">
|
|
32
|
+
<p>
|
|
33
|
+
[[post-queue:description, {config.relative_path}/admin/settings/post#post-queue]]
|
|
34
|
+
</p>
|
|
35
|
+
</div>
|
|
36
|
+
{{{ end }}}
|
|
37
|
+
{{{ end }}}
|
|
38
|
+
|
|
39
|
+
{{{ each posts }}}
|
|
40
|
+
<div class="card mb-3" data-id="{posts.id}">
|
|
41
|
+
<div class="card-header">
|
|
42
|
+
{{{ if !singlePost }}}
|
|
43
|
+
<input type="checkbox" class="form-check-input" autocomplete="off" />
|
|
44
|
+
{{{ end }}}
|
|
45
|
+
<strong>{{{ if posts.data.tid }}}[[post-queue:reply]]{{{ else }}}[[post-queue:topic]]{{{ end }}}</strong>
|
|
46
|
+
<span class="timeago float-end" title={posts.data.timestampISO}></span>
|
|
47
|
+
</div>
|
|
48
|
+
<div class="card-body">
|
|
49
|
+
<div class="row">
|
|
50
|
+
<div class="col-lg-2 col-12">
|
|
51
|
+
<strong>[[post-queue:user]]</strong>
|
|
52
|
+
<div>
|
|
53
|
+
{{{ if posts.user.userslug}}}
|
|
54
|
+
<a href="{config.relative_path}/uid/{posts.user.uid}">{buildAvatar(posts.user, "24px", true, "not-responsive")} {posts.user.username}</a>
|
|
55
|
+
{{{ else }}}
|
|
56
|
+
{posts.user.username}
|
|
57
|
+
{{{ end }}}
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
<div class="col-lg-3 col-12">
|
|
61
|
+
<strong>[[post-queue:category]]{{{ if posts.data.cid}}} <i class="fa fa-fw fa-edit" data-bs-toggle="tooltip" title="[[post-queue:category-editable]]"></i>{{{ end }}}</strong>
|
|
62
|
+
<div class="topic-category" {{{if posts.data.cid}}}data-editable="editable"{{{end}}}">
|
|
63
|
+
<a href="{config.relative_path}/category/{posts.category.slug}">
|
|
64
|
+
<div class="category-item d-inline-block">
|
|
65
|
+
{buildCategoryIcon(./category, "24px", "rounded-circle")}
|
|
66
|
+
{posts.category.name}
|
|
67
|
+
</div>
|
|
68
|
+
</a>
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
<div class="col-lg-7 col-12">
|
|
72
|
+
<strong>{{{ if posts.data.tid }}}[[post-queue:topic]]{{{ else }}}[[post-queue:title]] <i class="fa fa-fw fa-edit" data-bs-toggle="tooltip" title="[[post-queue:title-editable]]"></i>{{{ end }}}</strong>
|
|
73
|
+
<div class="topic-title text-break">
|
|
74
|
+
{{{ if posts.data.tid }}}
|
|
75
|
+
<a href="{config.relative_path}/topic/{posts.data.tid}">{posts.topic.title}</a>
|
|
76
|
+
{{{ end }}}
|
|
77
|
+
<span class="title-text">{posts.data.title}</span>
|
|
78
|
+
</div>
|
|
79
|
+
{{{if !posts.data.tid}}}
|
|
80
|
+
<div class="topic-title-editable hidden">
|
|
81
|
+
<input class="form-control" type="text" value="{posts.data.title}"/>
|
|
82
|
+
</div>
|
|
83
|
+
{{{end}}}
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
<hr/>
|
|
87
|
+
<div>
|
|
88
|
+
<strong>[[post-queue:content]] <i class="fa fa-fw fa-edit" data-bs-toggle="tooltip" title="[[post-queue:content-editable]]"></i></strong>
|
|
89
|
+
<div class="post-content text-break">{posts.data.content}</div>
|
|
90
|
+
<div class="post-content-editable hidden">
|
|
91
|
+
<textarea class="form-control w-100" style="height:300px;">{posts.data.rawContent}</textarea>
|
|
92
|
+
</div>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
<div class="card-footer text-end">
|
|
96
|
+
<div>
|
|
97
|
+
{{{ if canAccept }}}
|
|
98
|
+
<button class="btn btn-danger btn-sm" data-action="reject"><i class="fa fa-fw fa-times"></i> [[post-queue:reject]]</button>
|
|
99
|
+
<button class="btn btn-info btn-sm" data-action="notify"><i class="fa fa-fw fa-bell-o"></i> [[post-queue:notify]]</button>
|
|
100
|
+
<button class="btn btn-success btn-sm" data-action="accept"><i class="fa fa-fw fa-check"></i> [[post-queue:accept]] </button>
|
|
101
|
+
{{{ else }}}
|
|
102
|
+
<button class="btn btn-danger btn-sm" data-action="reject"><i class="fa fa-fw fa-times"></i> [[post-queue:remove]]</button>
|
|
103
|
+
{{{ end }}}
|
|
104
|
+
</div>
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
{{{ end }}}
|
|
108
|
+
</div>
|
|
109
|
+
|
|
110
|
+
<!-- IMPORT partials/paginator.tpl -->
|
|
111
|
+
</div>
|
|
112
|
+
</div>
|
package/templates/recent.tpl
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
<div class="category">
|
|
11
11
|
{{{ if !topics.length }}}
|
|
12
|
-
<div class="alert alert-
|
|
12
|
+
<div class="alert alert-info mt-3" id="category-no-topics">[[recent:no_recent_topics]]</div>
|
|
13
13
|
{{{ end }}}
|
|
14
14
|
|
|
15
15
|
<!-- IMPORT partials/topics_list.tpl -->
|
package/templates/top.tpl
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<!-- IMPORT partials/topic-list-bar.tpl -->
|
|
8
8
|
<div class="category">
|
|
9
9
|
{{{ if !topics.length }}}
|
|
10
|
-
<div class="alert alert-
|
|
10
|
+
<div class="alert alert-info mt-3" id="category-no-topics">[[top:no_top_topics]]</div>
|
|
11
11
|
{{{ end }}}
|
|
12
12
|
|
|
13
13
|
<!-- IMPORT partials/topics_list.tpl -->
|
package/templates/topic.tpl
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
</div>
|
|
7
7
|
{{{ end }}}
|
|
8
8
|
|
|
9
|
-
<h2 component="post/header" class="fs-2 mb-0 {{{ if config.centerHeaderElements }}}text-center{{{ end }}}" itemprop="name">
|
|
9
|
+
<h2 component="post/header" class="fs-2 mb-0 text-break {{{ if config.centerHeaderElements }}}text-center{{{ end }}}" itemprop="name">
|
|
10
10
|
<span class="topic-title" component="topic/title">{title}</span>
|
|
11
11
|
</h2>
|
|
12
12
|
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
<i class="fa fa-arrow-circle-right"></i>
|
|
29
29
|
{{{ if privileges.isAdminOrMod }}}[[topic:moved-from, {oldCategory.name}]]{{{ else }}}[[topic:moved]]{{{ end }}}
|
|
30
30
|
</span>
|
|
31
|
-
{{{each icons}}}<span
|
|
31
|
+
{{{each icons}}}<span>{@value}</span>{{{end}}}
|
|
32
32
|
</span>
|
|
33
33
|
<a class="lh-1" href="{config.relative_path}/category/{category.slug}">{function.buildCategoryLabel, category, "border"}</a>
|
|
34
34
|
<div class="lh-1 tags tag-list d-flex hidden-xs gap-2"><!-- IMPORT partials/topic/tags.tpl --></div>
|
package/templates/unread.tpl
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<div class="unread">
|
|
7
7
|
<!-- IMPORT partials/topic-list-bar.tpl -->
|
|
8
8
|
<div class="category">
|
|
9
|
-
<div id="category-no-topics" class="alert alert-
|
|
9
|
+
<div id="category-no-topics" class="alert alert-info mt-3 {{{ if topics.length }}}hidden{{{ end }}}">[[unread:no_unread_topics]]</div>
|
|
10
10
|
|
|
11
11
|
<!-- IMPORT partials/topics_list.tpl -->
|
|
12
12
|
<button id="load-more-btn" class="btn btn-primary hide">[[unread:load_more]]</button>
|