nodebb-theme-harmony 1.2.51 → 1.2.52

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-harmony",
3
- "version": "1.2.51",
3
+ "version": "1.2.52",
4
4
  "nbbpm": {
5
5
  "compatibility": "^3.7.0"
6
6
  },
@@ -101,15 +101,38 @@
101
101
  {{{ if history.flags.length }}}
102
102
  <ul class="recent-flags list-unstyled">
103
103
  {{{ each history.flags }}}
104
- <li>
105
- <p>
104
+ <li class="mb-4 border-bottom">
105
+ <div class="mb-1 d-flex align-items-center justify-content-between">
106
+ <div>
107
+ {{{ if (./type == "user")}}}
108
+ <span class="badge text-bg-info">[[user:info.profile]]</span>
109
+ {{{ else }}}
110
+ <span class="badge text-bg-info">[[user:info.post]]</span>
111
+ {{{ end }}}
112
+ <span class="timestamp timeago" title="{./timestampISO}"></span>
113
+ </div>
114
+
115
+ <a href="{config.relative_path}/flags/{./flagId}" class="badge badge border border-gray-300 text-body">[[user:info.view-flag]]</a>
116
+ </div>
117
+
118
+ {{{ if (./type == "post") }}}
119
+ <p class="mb-1">
106
120
  {{{ if history.flags.targetPurged }}}
107
121
  <div>[[flags:target-purged]]</div>
108
122
  {{{ else }}}
109
- <a class="title" href="{config.relative_path}/post/{./pid}">{./title}</a><br />
123
+ <a class="title" href="{config.relative_path}/post/{./pid}">{./title}</a>
110
124
  {{{ end }}}
111
- <span class="timestamp">[[flags:flagged-timeago-readable, {./timestampISO}, {isoTimeToLocaleString(./timestampISO, config.userLang)}]]</span>
112
125
  </p>
126
+ {{{ end }}}
127
+
128
+ <div class="d-flex gap-2 align-items-center mb-3">
129
+ <span class="text-sm">[[user:info.reported-by]]</span>
130
+ <div class="d-flex text-nowrap">
131
+ {{{ each ./reports }}}
132
+ <a style="width: 18px; z-index: 3;" class="text-decoration-none" href="{config.relative_path}/user/{./reporter.userslug}">{buildAvatar(./reporter, "24px", true)}</a>
133
+ {{{ end }}}
134
+ </div>
135
+ </div>
113
136
  </li>
114
137
  {{{ end }}}
115
138
  </ul>