nodebb-theme-harmony 1.0.0-beta.75 → 1.0.0-beta.77

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.0.0-beta.75",
3
+ "version": "1.0.0-beta.77",
4
4
  "nbbpm": {
5
5
  "compatibility": "^3.0.0"
6
6
  },
@@ -14,7 +14,7 @@
14
14
  <a class="text-decoration-none" href="{config.relative_path}/user/{./user.userslug}"><div class="avatar avatar-rounded" style="--avatar-size: 32px; background-color: {./user.icon:bgColor};">{./user.icon:text}</div></a>
15
15
  {{{ end }}}
16
16
  <div class=" d-flex flex-column">
17
- <a href="{./path}" class="text-decoration-none text-reset text text-sm">
17
+ <a href="{./path}" class="text-decoration-none text-reset text-break text-sm">
18
18
  {./bodyShort}
19
19
  </a>
20
20
  <div class="text-xs text-muted">{{{ if ./timeagoLong }}}{./timeagoLong}{{{ else }}}<span class="timeago" title="{./datetimeISO}"></span>{{{ end }}}</div>
@@ -63,7 +63,7 @@
63
63
  {{{ end }}}
64
64
 
65
65
  {{{ if !posts.deleted }}}
66
- {{{ if posts.display_history }}}
66
+ {{{ if (posts.display_history && privileges.posts:history)}}}
67
67
  <li>
68
68
  <a class="dropdown-item" component="post/view-history" role="menuitem" tabindex="-1" href="#">
69
69
  <span class="menu-icon"><i class="fa fa-fw fa-history"></i></span> [[topic:view-history]]
@@ -103,13 +103,13 @@
103
103
 
104
104
  <div component="post/actions" class="d-flex justify-content-end gap-1 post-tools">
105
105
  <!-- IMPORT partials/topic/reactions.tpl -->
106
- <a component="post/reply" href="#" class="btn-ghost-sm user-select-none {{{ if !privileges.topics:reply }}}hidden{{{ end }}}" title="[[topic:reply]]"><i class="fa fa-reply text-primary"></i></a>
107
- <a component="post/quote" href="#" class="btn-ghost-sm user-select-none {{{ if !privileges.topics:reply }}}hidden{{{ end }}}" title="[[topic:quote]]"><i class="fa fa-quote-right text-primary"></i></a>
106
+ <a component="post/reply" href="#" class="btn-ghost-sm user-select-none {{{ if !privileges.topics:reply }}}hidden{{{ end }}}" title="[[topic:reply]]"><i class="fa fa-fw fa-reply text-primary"></i></a>
107
+ <a component="post/quote" href="#" class="btn-ghost-sm user-select-none {{{ if !privileges.topics:reply }}}hidden{{{ end }}}" title="[[topic:quote]]"><i class="fa fa-fw fa-quote-right text-primary"></i></a>
108
108
 
109
109
  {{{ if !reputation:disabled }}}
110
110
  <div class="d-flex votes align-items-stretch">
111
111
  <a component="post/upvote" href="#" class="btn-ghost-sm {{{ if posts.upvoted }}}upvoted{{{ end }}}">
112
- <i class="fa fa-chevron-up text-primary"></i>
112
+ <i class="fa fa-fw fa-chevron-up text-primary"></i>
113
113
  </a>
114
114
 
115
115
  <meta itemprop="upvoteCount" content="{posts.upvotes}">
@@ -118,7 +118,7 @@
118
118
 
119
119
  {{{ if !downvote:disabled }}}
120
120
  <a component="post/downvote" href="#" class="btn-ghost-sm {{{ if posts.downvoted }}}downvoted{{{ end }}}">
121
- <i class="fa fa-chevron-down text-primary"></i>
121
+ <i class="fa fa-fw fa-chevron-down text-primary"></i>
122
122
  </a>
123
123
  {{{ end }}}
124
124
  </div>
@@ -59,7 +59,7 @@
59
59
  <strong>[[post-queue:user]]</strong>
60
60
  <div>
61
61
  {{{ if posts.user.userslug}}}
62
- <a href="{config.relative_path}/uid/{posts.user.uid}">{buildAvatar(posts.user, "24px", true, "not-responsive")} {posts.user.username}</a>
62
+ <a class="text-decoration-none" href="{config.relative_path}/uid/{posts.user.uid}">{buildAvatar(posts.user, "24px", true, "not-responsive")} {posts.user.username}</a>
63
63
  {{{ else }}}
64
64
  {posts.user.username}
65
65
  {{{ end }}}
@@ -12,7 +12,7 @@
12
12
  </h2>
13
13
 
14
14
  <div class="topic-info d-flex gap-2 align-items-center flex-wrap {{{ if config.theme.centerHeaderElements }}}justify-content-center{{{ end }}}">
15
- <span component="topic/labels" class="d-flex gap-2">
15
+ <span component="topic/labels" class="d-flex gap-2 {{{ if (!scheduled && (!pinned && (!locked && (!oldCid && !icons.length)))) }}}hidden{{{ end }}}">
16
16
  <span component="topic/scheduled" class="badge badge border border-gray-300 text-primary {{{ if !scheduled }}}hidden{{{ end }}}">
17
17
  <i class="fa fa-clock-o"></i>
18
18
  [[topic:scheduled]]