nodebb-theme-persona 13.3.16 → 13.3.17

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-theme-persona",
3
- "version": "13.3.16",
3
+ "version": "13.3.17",
4
4
  "nbbpm": {
5
5
  "compatibility": "^3.7.0"
6
6
  },
package/scss/account.scss CHANGED
@@ -344,34 +344,3 @@
344
344
  font-size:20px;
345
345
  font-weight:bold;
346
346
  }
347
-
348
- .page-user-info {
349
- .recent-flags {
350
- padding-left: 0;
351
-
352
- .title {
353
- font-weight: bold;
354
- }
355
-
356
- .timestamp {
357
- font-size: 1.25rem;
358
- font-style: italic;
359
- color: $gray-600;
360
- }
361
- }
362
-
363
- .ban-history {
364
- padding-left: 0;
365
-
366
- li {
367
- border-bottom: 1px solid $gray-200;
368
- margin-bottom: 1rem;
369
- }
370
-
371
- .expiry {
372
- font-size: 1.25rem;
373
- font-style: italic;
374
- color: $gray-600;
375
- }
376
- }
377
- }
@@ -120,18 +120,41 @@
120
120
  <div class="card-body">
121
121
  <!-- IF history.flags.length -->
122
122
  <ul class="recent-flags list-unstyled">
123
- {{{each history.flags}}}
124
- <li>
125
- <p>
123
+ {{{ each history.flags }}}
124
+ <li class="mb-4 border-bottom">
125
+ <div class="mb-1 d-flex align-items-center justify-content-between">
126
+ <div>
127
+ {{{ if (./type == "user")}}}
128
+ <span class="badge text-bg-info">[[user:info.profile]]</span>
129
+ {{{ else }}}
130
+ <span class="badge text-bg-info">[[user:info.post]]</span>
131
+ {{{ end }}}
132
+ <span class="timestamp timeago" title="{./timestampISO}"></span>
133
+ </div>
134
+
135
+ <a href="{config.relative_path}/flags/{./flagId}" class="badge badge border border-gray-300 text-body">[[user:info.view-flag]]</a>
136
+ </div>
137
+
138
+ {{{ if (./type == "post") }}}
139
+ <p class="mb-1">
126
140
  {{{ if history.flags.targetPurged }}}
127
141
  <div>[[flags:target-purged]]</div>
128
142
  {{{ else }}}
129
- <a class="title" href="{config.relative_path}/post/{../pid}">{../title}</a><br />
143
+ <a class="title" href="{config.relative_path}/post/{./pid}">{./title}</a>
130
144
  {{{ end }}}
131
- <span class="timestamp">[[flags:flagged-timeago-readable, {../timestampISO}, {isoTimeToLocaleString(./timestampISO, config.userLang)}]]</span>
132
145
  </p>
146
+ {{{ end }}}
147
+
148
+ <div class="d-flex gap-2 align-items-center mb-3">
149
+ <span class="text-sm">[[user:info.reported-by]]</span>
150
+ <div class="d-flex text-nowrap">
151
+ {{{ each ./reports }}}
152
+ <a style="width: 18px; z-index: 3;" class="text-decoration-none" href="{config.relative_path}/user/{./reporter.userslug}">{buildAvatar(./reporter, "24px", true)}</a>
153
+ {{{ end }}}
154
+ </div>
155
+ </div>
133
156
  </li>
134
- {{{end}}}
157
+ {{{ end }}}
135
158
  </ul>
136
159
  <!-- ELSE -->
137
160
  <div class="alert alert-success">[[user:info.no-flags]]</div>