nodebb-theme-persona 13.3.6 → 13.3.8
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
|
@@ -16,31 +16,32 @@
|
|
|
16
16
|
</div>
|
|
17
17
|
</div>
|
|
18
18
|
<div class="card-body">
|
|
19
|
+
<div component="groups/pending/alert" class="alert alert-info {{{ if group.pending.length }}}hidden{{{ end }}}">[[groups:pending.none]]</div>
|
|
20
|
+
|
|
19
21
|
<table component="groups/pending" class="table table-striped table-hover">
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
<
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
<
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
</
|
|
43
|
-
{{{end}}}
|
|
22
|
+
<tbody>
|
|
23
|
+
{{{each group.pending}}}
|
|
24
|
+
<tr data-uid="{group.pending.uid}">
|
|
25
|
+
<td class="p-2">
|
|
26
|
+
<a href="{config.relative_path}/user/{group.pending.userslug}">{buildAvatar(group.pending, "24px", true)}</a>
|
|
27
|
+
</td>
|
|
28
|
+
<td class="member-name p-2">
|
|
29
|
+
<a href="{config.relative_path}/user/{group.pending.userslug}">{group.pending.username}</a>
|
|
30
|
+
</td>
|
|
31
|
+
<td class="p-2">
|
|
32
|
+
<div class="btn-group float-end">
|
|
33
|
+
<button type="button" class="btn btn-outline-secondary btn-sm dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
34
|
+
[[global:more]] <span class="caret"></span>
|
|
35
|
+
</button>
|
|
36
|
+
<ul class="dropdown-menu" role="menu">
|
|
37
|
+
<li><a class="dropdown-item" href="#" data-action="accept" role="menuitem">[[groups:pending.accept]]</a></li>
|
|
38
|
+
<li><a class="dropdown-item" href="#" data-action="reject" role="menuitem">[[groups:pending.reject]]</a></li>
|
|
39
|
+
</ul>
|
|
40
|
+
</div>
|
|
41
|
+
</td>
|
|
42
|
+
</tr>
|
|
43
|
+
{{{end}}}
|
|
44
|
+
</tbody>
|
|
44
45
|
</table>
|
|
45
46
|
</div>
|
|
46
47
|
</div>
|
|
@@ -64,30 +65,31 @@
|
|
|
64
65
|
<button class="btn btn-outline-secondary btn-sm float-end" component="groups/members/bulk-invite-button">[[groups:bulk-invite]]</button>
|
|
65
66
|
</div>
|
|
66
67
|
|
|
68
|
+
<div component="groups/invited/alert" class="alert alert-info {{{ if group.invited.length }}}hidden{{{ end }}}">[[groups:invited.none]]</div>
|
|
69
|
+
|
|
67
70
|
<table component="groups/invited" class="table table-striped table-hover">
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
<
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
<
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
</
|
|
90
|
-
{{{end}}}
|
|
71
|
+
<tbody>
|
|
72
|
+
{{{ each group.invited }}}
|
|
73
|
+
<tr data-uid="{group.invited.uid}">
|
|
74
|
+
<td class="p-2">
|
|
75
|
+
<a href="{config.relative_path}/user/{group.invited.userslug}">{buildAvatar(group.invited, "24px", true)}</a>
|
|
76
|
+
</td>
|
|
77
|
+
<td class="member-name p-2">
|
|
78
|
+
<a href="{config.relative_path}/user/{group.invited.userslug}">{group.invited.username}</a>
|
|
79
|
+
</td>
|
|
80
|
+
<td class="p-2">
|
|
81
|
+
<div class="btn-group float-end">
|
|
82
|
+
<button type="button" class="btn btn-outline-secondary btn-sm dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
83
|
+
[[global:more]] <span class="caret"></span>
|
|
84
|
+
</button>
|
|
85
|
+
<ul class="dropdown-menu" role="menu">
|
|
86
|
+
<li><a class="dropdown-item" href="#" data-action="rescindInvite" role="menuitem">[[groups:invited.uninvite]]</a></li>
|
|
87
|
+
</ul>
|
|
88
|
+
</div>
|
|
89
|
+
</td>
|
|
90
|
+
</tr>
|
|
91
|
+
{{{end}}}
|
|
92
|
+
</tbody>
|
|
91
93
|
</table>
|
|
92
94
|
</div>
|
|
93
95
|
</div>
|
|
@@ -107,7 +109,7 @@
|
|
|
107
109
|
<input <!-- IF group.system -->readonly<!-- ENDIF group.system --> class="form-control" name="name" id="name" type="text" value="{group.displayName}" />
|
|
108
110
|
</div>
|
|
109
111
|
<div class="mb-3">
|
|
110
|
-
<label class="form-label" for="
|
|
112
|
+
<label class="form-label" for="description">[[groups:details.description]]</label>
|
|
111
113
|
<textarea class="form-control" name="description" id="description" type="text" maxlength="255">{group.description}</textarea>
|
|
112
114
|
</div>
|
|
113
115
|
|
|
@@ -128,25 +130,29 @@
|
|
|
128
130
|
|
|
129
131
|
<div class="mb-3 user-title-option">
|
|
130
132
|
<label class="form-label" for="userTitle">[[groups:details.badge-text]]</label>
|
|
131
|
-
<
|
|
133
|
+
<div class="d-flex gap-2">
|
|
134
|
+
<input component="groups/userTitleOption" class="form-control" name="userTitle" id="userTitle" type="text" maxlength="40" value="{group.userTitleEscaped}"<!-- IF !group.userTitleEnabled --> disabled<!-- ENDIF !group.userTitleEnabled --> />
|
|
135
|
+
<button component="groups/userTitleOption" type="button" class="btn btn-outline-secondary btn-sm text-nowrap" data-action="icon-select"<!-- IF !group.userTitleEnabled --> disabled<!-- ENDIF !group.userTitleEnabled -->>[[groups:details.change-icon]]</button>
|
|
136
|
+
</div>
|
|
132
137
|
</div>
|
|
133
138
|
|
|
134
139
|
<div class="mb-3 user-title-option">
|
|
135
|
-
<
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
<hr/>
|
|
139
|
-
<button component="groups/userTitleOption" type="button" class="btn btn-outline-secondary btn-sm" data-action="icon-select"<!-- IF !group.userTitleEnabled --> disabled<!-- ENDIF !group.userTitleEnabled -->>[[groups:details.change-icon]]</button>
|
|
140
|
-
<div>
|
|
141
|
-
<label class="form-label" for="labelColor" class="badge-color-label">[[groups:details.change-label-colour]]</label>
|
|
142
|
-
<input component="groups/userTitleOption" type="color" name="labelColor" value="<!-- IF group.labelColor -->{group.labelColor}<!-- ENDIF group.labelColor -->" />
|
|
140
|
+
<div class="d-flex align-items-center gap-3">
|
|
141
|
+
<label class="form-label mb-0">[[groups:details.badge-preview]]</label>
|
|
142
|
+
<span class="badge rounded-1 text-uppercase text-truncate rounded-1 {{{ if !group.userTitleEnabled }}} hide{{{ end }}}" style="max-width:150px; color: {group.textColor}; background-color: {group.labelColor}"><i class="fa{{{ if group.icon }}} {group.icon}{{{ if group.userTitle}}} me-1{{{ end }}}{{{ end }}}"></i><span class="badge-text">{{{ if group.userTitle }}}{group.userTitle}{{{ end }}}</span></span>
|
|
143
143
|
</div>
|
|
144
|
-
<
|
|
145
|
-
|
|
146
|
-
<
|
|
144
|
+
<hr/>
|
|
145
|
+
<div class="d-flex flex-column gap-2">
|
|
146
|
+
<div class="d-flex align-items-center gap-2">
|
|
147
|
+
<label class="form-label mb-0" for="labelColor" class="badge-color-label">[[groups:details.change-label-colour]]</label>
|
|
148
|
+
<input component="groups/userTitleOption" type="color" name="labelColor" id="labelColor" value="<!-- IF group.labelColor -->{group.labelColor}<!-- ENDIF group.labelColor -->" />
|
|
149
|
+
</div>
|
|
150
|
+
<div class="d-flex align-items-center gap-2">
|
|
151
|
+
<label class="form-label mb-0" for="textColor" class="badge-color-label">[[groups:details.change-text-colour]]</label>
|
|
152
|
+
<input component="groups/userTitleOption" type="color" name="textColor" id="textColor" value="<!-- IF group.textColor -->{group.textColor}<!-- ENDIF group.textColor -->" />
|
|
153
|
+
</div>
|
|
154
|
+
<input type="hidden" name="icon" value="<!-- IF group.icon -->{group.icon}<!-- ENDIF group.icon -->" />
|
|
147
155
|
</div>
|
|
148
|
-
<input type="hidden" name="icon" value="<!-- IF group.icon -->{group.icon}<!-- ENDIF group.icon -->" />
|
|
149
|
-
|
|
150
156
|
<div id="icons" class="hidden">
|
|
151
157
|
<div class="icon-container">
|
|
152
158
|
<div class="row nbb-fa-icons">
|
|
@@ -157,12 +163,12 @@
|
|
|
157
163
|
</div>
|
|
158
164
|
<hr />
|
|
159
165
|
<div class="form-check">
|
|
160
|
-
<label class="form-check-label">[[groups:details.userTitleEnabled]]</label>
|
|
161
|
-
<input class="form-check-input" name="userTitleEnabled" type="checkbox"<!-- IF group.userTitleEnabled --> checked<!-- ENDIF group.userTitleEnabled -->>
|
|
166
|
+
<label class="form-check-label" for="userTitleEnabled">[[groups:details.userTitleEnabled]]</label>
|
|
167
|
+
<input class="form-check-input" name="userTitleEnabled" id="userTitleEnabled" type="checkbox"<!-- IF group.userTitleEnabled --> checked<!-- ENDIF group.userTitleEnabled -->>
|
|
162
168
|
</div>
|
|
163
169
|
<div class="form-check">
|
|
164
|
-
<label class="form-check-label">[[groups:details.private]]</label>
|
|
165
|
-
<input class="form-check-input" name="private" type="checkbox"<!-- IF group.private --> checked<!-- ENDIF group.private -->>
|
|
170
|
+
<label class="form-check-label" for="private">[[groups:details.private]]</label>
|
|
171
|
+
<input class="form-check-input" name="private" id="private" type="checkbox"<!-- IF group.private --> checked<!-- ENDIF group.private -->>
|
|
166
172
|
<!-- IF !allowPrivateGroups -->
|
|
167
173
|
<p class="form-text">
|
|
168
174
|
[[groups:details.private-system-help]]
|
|
@@ -173,16 +179,16 @@
|
|
|
173
179
|
</p>
|
|
174
180
|
</div>
|
|
175
181
|
<div class="form-check">
|
|
176
|
-
<label class="form-check-label">[[groups:details.disableJoinRequests]]</label>
|
|
177
|
-
<input class="form-check-input" name="disableJoinRequests" type="checkbox"<!-- IF group.disableJoinRequests --> checked<!-- ENDIF group.disableJoinRequests -->>
|
|
182
|
+
<label class="form-check-label" for="disableJoinRequests">[[groups:details.disableJoinRequests]]</label>
|
|
183
|
+
<input class="form-check-input" name="disableJoinRequests" id="disableJoinRequests" type="checkbox"<!-- IF group.disableJoinRequests --> checked<!-- ENDIF group.disableJoinRequests -->>
|
|
178
184
|
</div>
|
|
179
185
|
<div class="form-check">
|
|
180
|
-
<label class="form-check-label">[[groups:details.disableLeave]]</label>
|
|
181
|
-
<input class="form-check-input" name="disableLeave" type="checkbox"{{{if group.disableLeave}}} checked{{{end}}}>
|
|
186
|
+
<label class="form-check-label" for="disableLeave">[[groups:details.disableLeave]]</label>
|
|
187
|
+
<input class="form-check-input" name="disableLeave" id="disableLeave" type="checkbox"{{{if group.disableLeave}}} checked{{{end}}}>
|
|
182
188
|
</div>
|
|
183
189
|
<div class="form-check">
|
|
184
|
-
<label class="form-check-label">[[groups:details.hidden]]</label>
|
|
185
|
-
<input class="form-check-input" name="hidden" type="checkbox"<!-- IF group.hidden --> checked<!-- ENDIF group.hidden -->>
|
|
190
|
+
<label class="form-check-label" for="hidden">[[groups:details.hidden]]</label>
|
|
191
|
+
<input class="form-check-input" name="hidden" id="hidden" type="checkbox"<!-- IF group.hidden --> checked<!-- ENDIF group.hidden -->>
|
|
186
192
|
<p class="form-text">
|
|
187
193
|
[[groups:details.hidden-help]]
|
|
188
194
|
</p>
|