nodebb-theme-harmony 2.2.52 → 2.2.54
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
|
@@ -70,7 +70,13 @@
|
|
|
70
70
|
</div>
|
|
71
71
|
|
|
72
72
|
<div class="tab-pane fade" id="groups-admin" role="tabpanel">
|
|
73
|
-
<
|
|
73
|
+
<div class="d-flex align-items-center gap-1 justify-content-between mb-3 flex-wrap">
|
|
74
|
+
<h3 class="fw-semibold fs-5">[[groups:details.owner-options]]</h3>
|
|
75
|
+
<div class="d-flex justify-content-end gap-2">
|
|
76
|
+
<button class="btn btn-link btn-sm text-danger border-danger" type="button" data-action="delete">[[groups:details.delete-group]]</button>
|
|
77
|
+
<button class="btn btn-primary btn-sm" type="button" data-action="update">[[global:save-changes]]</button>
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
74
80
|
<!-- IMPORT partials/groups/admin.tpl -->
|
|
75
81
|
</div>
|
|
76
82
|
{{{ end }}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<div class="options">
|
|
1
|
+
<div class="options mb-5">
|
|
2
2
|
<form component="groups/settings" role="form">
|
|
3
3
|
<div class="row">
|
|
4
4
|
<div class="col-12 col-lg-6">
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
</div>
|
|
9
9
|
<div class="mb-3">
|
|
10
10
|
<label class="form-label" for="description">[[groups:details.description]]</label>
|
|
11
|
-
<textarea class="form-control" name="description" id="description" type="text" maxlength="255">{group.description}</textarea>
|
|
11
|
+
<textarea class="form-control" name="description" id="description" type="text" maxlength="255" rows="5">{group.description}</textarea>
|
|
12
12
|
</div>
|
|
13
13
|
|
|
14
|
-
<div class="form-check">
|
|
14
|
+
<div class="form-check mb-3">
|
|
15
15
|
<label class="form-check-label" for="private">[[groups:details.private]]</label>
|
|
16
16
|
<input class="form-check-input" name="private" id="private" type="checkbox"{{{ if group.private }}} checked{{{ end }}}>
|
|
17
17
|
{{{ if !allowPrivateGroups }}}
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
[[groups:details.private-help]]
|
|
24
24
|
</p>
|
|
25
25
|
</div>
|
|
26
|
-
<div class="form-check">
|
|
26
|
+
<div class="form-check mb-3">
|
|
27
27
|
<label class="form-check-label" for="hidden">[[groups:details.hidden]]</label>
|
|
28
28
|
<input class="form-check-input" name="hidden" id="hidden" type="checkbox"{{{ if group.hidden }}} checked{{{ end }}}>
|
|
29
29
|
<p class="form-text text-xs m-0">
|
|
@@ -31,17 +31,27 @@
|
|
|
31
31
|
</p>
|
|
32
32
|
</div>
|
|
33
33
|
|
|
34
|
-
<div class="form-check">
|
|
34
|
+
<div class="form-check mb-3">
|
|
35
35
|
<label class="form-check-label" for="disableJoinRequests">[[groups:details.disableJoinRequests]]</label>
|
|
36
36
|
<input class="form-check-input" name="disableJoinRequests" id="disableJoinRequests" type="checkbox"{{{ if group.disableJoinRequests }}} checked{{{ end }}}>
|
|
37
37
|
</div>
|
|
38
|
-
<div class="form-check">
|
|
38
|
+
<div class="form-check mb-3">
|
|
39
39
|
<label class="form-check-label" for="disableLeave">[[groups:details.disableLeave]]</label>
|
|
40
40
|
<input class="form-check-input" name="disableLeave" id="disableLeave" type="checkbox"{{{if group.disableLeave}}} checked{{{end}}}>
|
|
41
41
|
</div>
|
|
42
|
+
|
|
43
|
+
<div class="mb-3">
|
|
44
|
+
<label class="form-label" for="memberPostCids">[[groups:details.member-post-cids]]</label>
|
|
45
|
+
<div class="d-flex gap-1">
|
|
46
|
+
<div class="member-post-cids-selector">
|
|
47
|
+
<!-- IMPORT partials/category/selector-dropdown-left.tpl -->
|
|
48
|
+
</div>
|
|
49
|
+
<input id="memberPostCids" type="text" class="form-control form-control-sm" value="{group.memberPostCids}">
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
42
52
|
</div>
|
|
43
53
|
<div class="col-12 col-lg-6">
|
|
44
|
-
<div class="d-flex gap-2 align-items-center">
|
|
54
|
+
<div class="d-flex gap-2 align-items-center mb-3">
|
|
45
55
|
<div class="form-check">
|
|
46
56
|
<label class="form-check-label" for="userTitleEnabled">[[groups:details.userTitleEnabled]]</label>
|
|
47
57
|
<input class="form-check-input" name="userTitleEnabled" id="userTitleEnabled" type="checkbox"{{{ if group.userTitleEnabled }}} checked{{{ end }}}>
|
|
@@ -50,8 +60,8 @@
|
|
|
50
60
|
</div>
|
|
51
61
|
|
|
52
62
|
|
|
53
|
-
<div class="mb-
|
|
54
|
-
<label class="form-label
|
|
63
|
+
<div class="mb-3">
|
|
64
|
+
<label class="form-label" for="userTitle">[[groups:details.badge-text]]</label>
|
|
55
65
|
<div class="d-flex gap-1">
|
|
56
66
|
<input component="groups/userTitleOption" class="form-control" name="userTitle" id="userTitle" type="text" maxlength="40" value="{group.userTitleEscaped}"{{{ if !group.userTitleEnabled }}} disabled{{{ end }}} />
|
|
57
67
|
<button component="groups/userTitleOption" type="button" class="btn btn-outline-secondary text-nowrap" data-action="icon-select"{{{ if !group.userTitleEnabled }}} disabled{{{ end }}}>[[groups:details.change-icon]]</button>
|
|
@@ -65,31 +75,16 @@
|
|
|
65
75
|
</div>
|
|
66
76
|
</div>
|
|
67
77
|
</div>
|
|
68
|
-
<div class="mb-
|
|
69
|
-
<label class="form-label
|
|
70
|
-
<input class="form-control" component="groups/userTitleOption" type="color" name="labelColor" id="labelColor" value="{{{ if group.labelColor }}}{group.labelColor}{{{ end }}}" />
|
|
78
|
+
<div class="mb-3 d-flex align-items-center justify-content-between gap-5">
|
|
79
|
+
<label class="form-label mb-0 text-nowrap" for="labelColor" class="badge-color-label">[[groups:details.change-label-colour]]</label>
|
|
80
|
+
<input class="form-control p-1" component="groups/userTitleOption" type="color" name="labelColor" id="labelColor" value="{{{ if group.labelColor }}}{group.labelColor}{{{ end }}}" style="width: 128px;" />
|
|
71
81
|
</div>
|
|
72
|
-
<div class="
|
|
73
|
-
<label class="form-label
|
|
74
|
-
<input class="form-control" component="groups/userTitleOption" type="color" name="textColor" id="textColor" value="{{{ if group.textColor }}}{group.textColor}{{{ end }}}" />
|
|
82
|
+
<div class="d-flex align-items-center justify-content-between gap-5">
|
|
83
|
+
<label class="form-label mb-0 text-nowrap" for="textColor" class="badge-color-label">[[groups:details.change-text-colour]]</label>
|
|
84
|
+
<input class="form-control p-1" component="groups/userTitleOption" type="color" name="textColor" id="textColor" value="{{{ if group.textColor }}}{group.textColor}{{{ end }}}" style="width: 128px;"/>
|
|
75
85
|
</div>
|
|
76
86
|
</div>
|
|
77
87
|
</div>
|
|
78
88
|
|
|
79
|
-
<hr />
|
|
80
|
-
|
|
81
|
-
<div class="mb-3">
|
|
82
|
-
<label class="form-label" for="memberPostCids">[[groups:details.member-post-cids]]</label>
|
|
83
|
-
<div class="d-flex gap-1">
|
|
84
|
-
<div class="member-post-cids-selector">
|
|
85
|
-
<!-- IMPORT partials/category/selector-dropdown-left.tpl -->
|
|
86
|
-
</div>
|
|
87
|
-
<input id="memberPostCids" type="text" class="form-control form-control-sm" value="{group.memberPostCids}">
|
|
88
|
-
</div>
|
|
89
|
-
</div>
|
|
90
|
-
<div class="d-flex justify-content-end gap-2">
|
|
91
|
-
<button class="btn btn-link text-danger" type="button" data-action="delete">[[groups:details.delete-group]]</button>
|
|
92
|
-
<button class="btn btn-primary" type="button" data-action="update">[[global:save-changes]]</button>
|
|
93
|
-
</div>
|
|
94
89
|
</form>
|
|
95
90
|
</div>
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<li data-cid="{./cid}" class="d-flex flex-column gap-1">
|
|
13
13
|
<div class="btn btn-ghost btn-sm ff-secondary d-flex gap-2 align-items-center rounded-1 text-start text-reset d-block text-truncate px-2 py-1 position-relative">
|
|
14
14
|
<div class="flex-shrink-0">{buildCategoryIcon(@value, "40px", "rounded-1")}</div>
|
|
15
|
-
<div class="flex-grow-1">
|
|
15
|
+
<div class="flex-grow-1" style="min-width: 0;">
|
|
16
16
|
<a class="stretched-link" href="{config.relative_path}/category/{./slug}"></a>
|
|
17
17
|
<span class="quick-search-title fw-semibold text-sm">
|
|
18
18
|
{./name}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<!-- IMPORT partials/tags/filter-dropdown-left.tpl -->
|
|
8
8
|
<!-- IMPORT partials/category/sort.tpl -->
|
|
9
9
|
{{{ end }}}
|
|
10
|
-
{{{ if (template.popular || template.top)}}}
|
|
10
|
+
{{{ if (template.popular || template.top) }}}
|
|
11
11
|
<!-- IMPORT partials/topic-terms.tpl -->
|
|
12
12
|
{{{ end }}}
|
|
13
13
|
{{{ if (template.unread || (template.recent || (template.popular || template.top))) }}}
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
</button>
|
|
34
34
|
<ul class="dropdown-menu" id="sort-options">
|
|
35
35
|
<li><a class="dropdown-item rounded-1" href="{config.relative_path}/world">[[world:latest]]</a></li>
|
|
36
|
+
<li><a class="dropdown-item rounded-1" href="{config.relative_path}/world?all=1">[[world:latest-all]]</a></li>
|
|
36
37
|
<li><a class="dropdown-item rounded-1" href="{config.relative_path}/world?sort=popular&term=day">[[world:popular-day]]</a></li>
|
|
37
38
|
<li><a class="dropdown-item rounded-1" href="{config.relative_path}/world?sort=popular&term=week">[[world:popular-week]]</a></li>
|
|
38
39
|
<li><a class="dropdown-item rounded-1" href="{config.relative_path}/world?sort=popular&term=month">[[world:popular-month]]</a></li>
|