nodebb-theme-persona 13.3.15 → 13.3.16
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/templates/account/info.tpl +88 -65
package/package.json
CHANGED
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
</div>
|
|
60
60
|
</div>
|
|
61
61
|
|
|
62
|
-
<div class="card">
|
|
62
|
+
<div class="card mb-3">
|
|
63
63
|
<h5 class="card-header">
|
|
64
64
|
[[user:info.email-history]]
|
|
65
65
|
</h5>
|
|
@@ -74,6 +74,43 @@
|
|
|
74
74
|
</ul>
|
|
75
75
|
</div>
|
|
76
76
|
</div>
|
|
77
|
+
<!-- IF isAdminOrGlobalModerator -->
|
|
78
|
+
<div class="card">
|
|
79
|
+
<h5 class="card-header">
|
|
80
|
+
[[user:info.moderation-note]]
|
|
81
|
+
</h5>
|
|
82
|
+
<div class="card-body">
|
|
83
|
+
<textarea component="account/moderation-note" class="form-control"></textarea>
|
|
84
|
+
<br/>
|
|
85
|
+
<button class="btn btn-sm float-end btn-success" component="account/save-moderation-note">[[user:info.moderation-note.add]]</button>
|
|
86
|
+
<br/>
|
|
87
|
+
<div component="account/moderation-note/list">
|
|
88
|
+
{{{each moderationNotes}}}
|
|
89
|
+
<hr/>
|
|
90
|
+
|
|
91
|
+
<div class="clearfix">
|
|
92
|
+
<div class="float-start">
|
|
93
|
+
<a href="<!-- IF moderationNotes.user.userslug -->{config.relative_path}/user/{moderationNotes.user.userslug}<!-- ELSE -->#<!-- ENDIF moderationNotes.user.userslug -->">{buildAvatar(moderationNotes.user, "24px", true)}</a>
|
|
94
|
+
<strong>
|
|
95
|
+
<a href="<!-- IF moderationNotes.user.userslug -->{config.relative_path}/user/{moderationNotes.user.userslug}<!-- ELSE -->#<!-- ENDIF moderationNotes.user.userslug -->" itemprop="author" data-username="{moderationNotes.user.username}" data-uid="{moderationNotes.user.uid}">{moderationNotes.user.username}</a>
|
|
96
|
+
</strong>
|
|
97
|
+
|
|
98
|
+
<div class="visible-xs-inline-block visible-sm-inline-block visible-md-inline-block visible-lg-inline-block">
|
|
99
|
+
<span class="timeago" title="{moderationNotes.timestampISO}"></span>
|
|
100
|
+
</div>
|
|
101
|
+
<br />
|
|
102
|
+
|
|
103
|
+
<div class="content">
|
|
104
|
+
{moderationNotes.note}
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
</div>
|
|
108
|
+
{{{end}}}
|
|
109
|
+
</div>
|
|
110
|
+
<!-- IMPORT partials/paginator.tpl -->
|
|
111
|
+
</div>
|
|
112
|
+
</div>
|
|
113
|
+
<!-- ENDIF isAdminOrGlobalModerator -->
|
|
77
114
|
</div>
|
|
78
115
|
<div class="col-sm-6">
|
|
79
116
|
<div class="card mb-3">
|
|
@@ -119,23 +156,36 @@
|
|
|
119
156
|
<div class="card-body">
|
|
120
157
|
<!-- IF history.bans.length -->
|
|
121
158
|
<ul class="ban-history list-unstyled">
|
|
122
|
-
{{{each history.bans}}}
|
|
123
|
-
<li>
|
|
124
|
-
<
|
|
125
|
-
<
|
|
126
|
-
|
|
127
|
-
<
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
<span class="
|
|
134
|
-
|
|
135
|
-
<span class="
|
|
159
|
+
{{{ each history.bans }}}
|
|
160
|
+
<li class="mb-4 border-bottom">
|
|
161
|
+
<div class="mb-1 d-flex align-items-center justify-content-between">
|
|
162
|
+
<div>
|
|
163
|
+
<a href="{config.relative_path}/user/{./user.userslug}">{buildAvatar(./user, "24px", true)}</a>
|
|
164
|
+
<strong>
|
|
165
|
+
<a href="{{{ if ./user.userslug }}}{config.relative_path}/user/{./user.userslug}{{{ else }}}#{{{ end }}}" itemprop="author" data-username="{./user.username}" data-uid="{./user.uid}">{./user.username}</a>
|
|
166
|
+
</strong>
|
|
167
|
+
<span class="timestamp timeago" title="{./timestampISO}"></span>
|
|
168
|
+
</div>
|
|
169
|
+
{{{ if (./type != "unban") }}}
|
|
170
|
+
<span class="badge text-bg-danger">[[user:banned]]</span>
|
|
171
|
+
{{{ else }}}
|
|
172
|
+
<span class="badge text-bg-success">[[user:unbanned]]</span>
|
|
173
|
+
{{{ end }}}
|
|
174
|
+
</div>
|
|
175
|
+
<p class="mb-1">
|
|
176
|
+
<span class="reason">[[user:info.banned-reason-label]]: <strong>{./reason}</strong></span>
|
|
177
|
+
</p>
|
|
178
|
+
<p class="">
|
|
179
|
+
{{{ if ./until }}}
|
|
180
|
+
<span class="expiry">[[user:info.banned-until, {isoTimeToLocaleString(./untilISO, config.userLang)}]]</span>
|
|
181
|
+
{{{ else }}}
|
|
182
|
+
{{{ if (./type != "unban") }}}
|
|
183
|
+
<span class="expiry">[[user:info.banned-permanently]]</span>
|
|
184
|
+
{{{ end }}}
|
|
185
|
+
{{{ end }}}
|
|
136
186
|
</p>
|
|
137
187
|
</li>
|
|
138
|
-
{{{end}}}
|
|
188
|
+
{{{ end }}}
|
|
139
189
|
</ul>
|
|
140
190
|
<!-- ELSE -->
|
|
141
191
|
<div class="alert alert-success">[[user:info.no-ban-history]]</div>
|
|
@@ -161,21 +211,31 @@
|
|
|
161
211
|
{{{ if history.mutes.length }}}
|
|
162
212
|
<ul class="ban-history list-unstyled">
|
|
163
213
|
{{{ each history.mutes }}}
|
|
164
|
-
<li>
|
|
165
|
-
<
|
|
166
|
-
<
|
|
167
|
-
|
|
168
|
-
<
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
214
|
+
<li class="mb-4 border-bottom">
|
|
215
|
+
<div class="mb-1 d-flex align-items-center justify-content-between">
|
|
216
|
+
<div>
|
|
217
|
+
<a href="{config.relative_path}/user/{./user.userslug}">{buildAvatar(./user, "24px", true)}</a>
|
|
218
|
+
<strong>
|
|
219
|
+
<a href="{{{ if ./user.userslug }}}{config.relative_path}/user/{./user.userslug}{{{ else }}}#{{{ end }}}" itemprop="author" data-username="{./user.username}" data-uid="{./user.uid}">{./user.username}</a>
|
|
220
|
+
</strong>
|
|
221
|
+
<span class="timestamp timeago" title="{./timestampISO}"></span>
|
|
222
|
+
</div>
|
|
223
|
+
{{{ if (./type != "unmute") }}}
|
|
224
|
+
<span class="badge text-bg-danger">[[user:muted]]</span>
|
|
225
|
+
{{{ else }}}
|
|
226
|
+
<span class="badge text-bg-success">[[user:unmuted]]</span>
|
|
227
|
+
{{{ end }}}
|
|
228
|
+
</div>
|
|
229
|
+
<p class="mb-1">
|
|
230
|
+
<span class="reason">[[user:info.banned-reason-label]]: <strong>{./reason}</strong></span>
|
|
231
|
+
</p>
|
|
232
|
+
<p class="">
|
|
233
|
+
{{{ if ./until }}}
|
|
234
|
+
<span class="expiry">[[user:info.muted-until, {isoTimeToLocaleString(./untilISO, config.userLang)}]]</span>
|
|
173
235
|
{{{ end }}}
|
|
174
|
-
|
|
175
|
-
<span class="reason"><strong>[[user:info.banned-reason-label]]</strong>: {../reason}</span>
|
|
176
236
|
</p>
|
|
177
237
|
</li>
|
|
178
|
-
{{{end}}}
|
|
238
|
+
{{{ end }}}
|
|
179
239
|
</ul>
|
|
180
240
|
{{{ else }}}
|
|
181
241
|
<div class="alert alert-success">[[user:info.no-mute-history]]</div>
|
|
@@ -183,43 +243,6 @@
|
|
|
183
243
|
</div>
|
|
184
244
|
</div>
|
|
185
245
|
|
|
186
|
-
<!-- IF isAdminOrGlobalModerator -->
|
|
187
|
-
<div class="card">
|
|
188
|
-
<h5 class="card-header">
|
|
189
|
-
[[user:info.moderation-note]]
|
|
190
|
-
</h5>
|
|
191
|
-
<div class="card-body">
|
|
192
|
-
<textarea component="account/moderation-note" class="form-control"></textarea>
|
|
193
|
-
<br/>
|
|
194
|
-
<button class="btn btn-sm float-end btn-success" component="account/save-moderation-note">[[user:info.moderation-note.add]]</button>
|
|
195
|
-
<br/>
|
|
196
|
-
<div component="account/moderation-note/list">
|
|
197
|
-
{{{each moderationNotes}}}
|
|
198
|
-
<hr/>
|
|
199
|
-
|
|
200
|
-
<div class="clearfix">
|
|
201
|
-
<div class="float-start">
|
|
202
|
-
<a href="<!-- IF moderationNotes.user.userslug -->{config.relative_path}/user/{moderationNotes.user.userslug}<!-- ELSE -->#<!-- ENDIF moderationNotes.user.userslug -->">{buildAvatar(moderationNotes.user, "24px", true)}</a>
|
|
203
|
-
<strong>
|
|
204
|
-
<a href="<!-- IF moderationNotes.user.userslug -->{config.relative_path}/user/{moderationNotes.user.userslug}<!-- ELSE -->#<!-- ENDIF moderationNotes.user.userslug -->" itemprop="author" data-username="{moderationNotes.user.username}" data-uid="{moderationNotes.user.uid}">{moderationNotes.user.username}</a>
|
|
205
|
-
</strong>
|
|
206
|
-
|
|
207
|
-
<div class="visible-xs-inline-block visible-sm-inline-block visible-md-inline-block visible-lg-inline-block">
|
|
208
|
-
<span class="timeago" title="{moderationNotes.timestampISO}"></span>
|
|
209
|
-
</div>
|
|
210
|
-
<br />
|
|
211
|
-
|
|
212
|
-
<div class="content">
|
|
213
|
-
{moderationNotes.note}
|
|
214
|
-
</div>
|
|
215
|
-
</div>
|
|
216
|
-
</div>
|
|
217
|
-
{{{end}}}
|
|
218
|
-
</div>
|
|
219
|
-
<!-- IMPORT partials/paginator.tpl -->
|
|
220
|
-
</div>
|
|
221
|
-
</div>
|
|
222
|
-
<!-- ENDIF isAdminOrGlobalModerator -->
|
|
223
246
|
</div>
|
|
224
247
|
</div>
|
|
225
248
|
|