nodebb-theme-harmony 1.2.51 → 1.2.53

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.53",
4
4
  "nbbpm": {
5
5
  "compatibility": "^3.7.0"
6
6
  },
@@ -70,19 +70,29 @@
70
70
  {{{ each moderationNotes }}}
71
71
  <hr/>
72
72
 
73
- <div>
74
- <a href="{{{ if ./user.userslug }}}{config.relative_path}/user/{./user.userslug}{{{ else }}}#{{{ end }}}">{buildAvatar(./user, "24px", true)}</a>
75
- <strong>
76
- <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>
77
- </strong>
73
+ <div data-id="{./id}">
74
+ <div class="mb-1">
75
+ <a href="{{{ if ./user.userslug }}}{config.relative_path}/user/{./user.userslug}{{{ else }}}#{{{ end }}}">{buildAvatar(./user, "24px", true)}</a>
76
+
77
+ <a href="{{{ if ./user.userslug }}}{config.relative_path}/user/{./user.userslug}{{{ else }}}#{{{ end }}}" class="fw-bold" itemprop="author" data-username="{./user.username}" data-uid="{./user.uid}">{./user.username}</a>
78
78
 
79
- <div class="visible-xs-inline-block visible-sm-inline-block visible-md-inline-block visible-lg-inline-block">
80
79
  <span class="timeago" title="{./timestampISO}"></span>
81
80
  </div>
82
- <br />
83
81
 
84
- <div class="content">
85
- {./note}
82
+
83
+ <div component="account/moderation-note/content-area" class="d-flex flex-column">
84
+ <div class="content">
85
+ {./note}
86
+ </div>
87
+ <button component="account/moderation-note/edit" class="btn btn-sm btn-link align-self-end">[[topic:edit]]</button>
88
+ </div>
89
+
90
+ <div component="account/moderation-note/edit-area" class="d-flex flex-column gap-2">
91
+ <textarea class="form-control w-100 overflow-hidden">{./rawNote}</textarea>
92
+ <div class="align-self-end">
93
+ <button component="account/moderation-note/cancel-edit" class="btn btn-sm btn-link text-danger align-self-end">[[global:cancel]]</button>
94
+ <button component="account/moderation-note/save-edit" class="btn btn-sm btn-primary align-self-end">[[global:save]]</button>
95
+ </div>
86
96
  </div>
87
97
  </div>
88
98
  {{{ end }}}
@@ -101,15 +111,38 @@
101
111
  {{{ if history.flags.length }}}
102
112
  <ul class="recent-flags list-unstyled">
103
113
  {{{ each history.flags }}}
104
- <li>
105
- <p>
114
+ <li class="mb-4 border-bottom">
115
+ <div class="mb-1 d-flex align-items-center justify-content-between">
116
+ <div>
117
+ {{{ if (./type == "user")}}}
118
+ <span class="badge text-bg-info">[[user:info.profile]]</span>
119
+ {{{ else }}}
120
+ <span class="badge text-bg-info">[[user:info.post]]</span>
121
+ {{{ end }}}
122
+ <span class="timestamp timeago" title="{./timestampISO}"></span>
123
+ </div>
124
+
125
+ <a href="{config.relative_path}/flags/{./flagId}" class="badge badge border border-gray-300 text-body">[[user:info.view-flag]]</a>
126
+ </div>
127
+
128
+ {{{ if (./type == "post") }}}
129
+ <p class="mb-1">
106
130
  {{{ if history.flags.targetPurged }}}
107
131
  <div>[[flags:target-purged]]</div>
108
132
  {{{ else }}}
109
- <a class="title" href="{config.relative_path}/post/{./pid}">{./title}</a><br />
133
+ <a class="title" href="{config.relative_path}/post/{./pid}">{./title}</a>
110
134
  {{{ end }}}
111
- <span class="timestamp">[[flags:flagged-timeago-readable, {./timestampISO}, {isoTimeToLocaleString(./timestampISO, config.userLang)}]]</span>
112
135
  </p>
136
+ {{{ end }}}
137
+
138
+ <div class="d-flex gap-2 align-items-center mb-3">
139
+ <span class="text-sm">[[user:info.reported-by]]</span>
140
+ <div class="d-flex text-nowrap">
141
+ {{{ each ./reports }}}
142
+ <a style="width: 18px; z-index: 3;" class="text-decoration-none" href="{config.relative_path}/user/{./reporter.userslug}">{buildAvatar(./reporter, "24px", true)}</a>
143
+ {{{ end }}}
144
+ </div>
145
+ </div>
113
146
  </li>
114
147
  {{{ end }}}
115
148
  </ul>