nodebb-theme-harmony 1.2.52 → 1.2.54

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.52",
3
+ "version": "1.2.54",
4
4
  "nbbpm": {
5
5
  "compatibility": "^3.7.0"
6
6
  },
@@ -29,13 +29,20 @@
29
29
  [[user:info.username-history]]
30
30
  </h5>
31
31
  <div class="card-body">
32
- <ul class="list-group">
33
- {{{each usernames}}}
34
- <li class="list-group-item">
35
- {../value}
36
- <small class="float-end"><span class="timeago" title="{../timestampISO}"></span></small>
32
+ <ul class="list-unstyled mb-0">
33
+ {{{ each usernames }}}
34
+ <li class="d-flex justify-content-between mb-1">
35
+ <span class="text-sm">{./value}</span>
36
+
37
+ <div>
38
+ {{{ if ./byUid }}}
39
+ <a class="lh-1" href="{{{ if ./byUser.userslug }}}{config.relative_path}/user/{./byUser.userslug}{{{ else }}}#{{{ end }}}">
40
+ {buildAvatar(./byUser, "18px", true)}</a>
41
+ {{{ end }}}
42
+ <span class="timeago text-sm lh-1 align-middle" title="{./timestampISO}"></span>
43
+ </div>
37
44
  </li>
38
- {{{end}}}
45
+ {{{ end }}}
39
46
  </ul>
40
47
  </div>
41
48
  </div>
@@ -45,13 +52,19 @@
45
52
  [[user:info.email-history]]
46
53
  </h5>
47
54
  <div class="card-body">
48
- <ul class="list-group">
49
- {{{each emails}}}
50
- <li class="list-group-item">
51
- {../value}
52
- <small class="float-end"><span class="timeago" title="{../timestampISO}"></span></small>
55
+ <ul class="list-unstyled mb-0">
56
+ {{{ each emails }}}
57
+ <li class="d-flex justify-content-between mb-1">
58
+ <span class="text-sm">{./value}</span>
59
+ <div>
60
+ {{{ if ./byUid }}}
61
+ <a class="lh-1" href="{{{ if ./byUser.userslug }}}{config.relative_path}/user/{./byUser.userslug}{{{ else }}}#{{{ end }}}">
62
+ {buildAvatar(./byUser, "18px", true)}</a>
63
+ {{{ end }}}
64
+ <span class="timeago text-sm lh-1 align-middle" title="{./timestampISO}"></span>
65
+ </div>
53
66
  </li>
54
- {{{end}}}
67
+ {{{ end }}}
55
68
  </ul>
56
69
  </div>
57
70
  </div>
@@ -70,19 +83,29 @@
70
83
  {{{ each moderationNotes }}}
71
84
  <hr/>
72
85
 
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>
86
+ <div data-id="{./id}">
87
+ <div class="mb-1">
88
+ <a href="{{{ if ./user.userslug }}}{config.relative_path}/user/{./user.userslug}{{{ else }}}#{{{ end }}}">{buildAvatar(./user, "24px", true)}</a>
89
+
90
+ <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
91
 
79
- <div class="visible-xs-inline-block visible-sm-inline-block visible-md-inline-block visible-lg-inline-block">
80
92
  <span class="timeago" title="{./timestampISO}"></span>
81
93
  </div>
82
- <br />
83
94
 
84
- <div class="content">
85
- {./note}
95
+
96
+ <div component="account/moderation-note/content-area" class="d-flex flex-column">
97
+ <div class="content">
98
+ {./note}
99
+ </div>
100
+ <button component="account/moderation-note/edit" class="btn btn-sm btn-link align-self-end">[[topic:edit]]</button>
101
+ </div>
102
+
103
+ <div component="account/moderation-note/edit-area" class="d-flex flex-column gap-2">
104
+ <textarea class="form-control w-100 overflow-hidden">{./rawNote}</textarea>
105
+ <div class="align-self-end">
106
+ <button component="account/moderation-note/cancel-edit" class="btn btn-sm btn-link text-danger align-self-end">[[global:cancel]]</button>
107
+ <button component="account/moderation-note/save-edit" class="btn btn-sm btn-primary align-self-end">[[global:save]]</button>
108
+ </div>
86
109
  </div>
87
110
  </div>
88
111
  {{{ end }}}