nodebb-theme-harmony 2.0.0-pre.13 → 2.0.0-pre.15

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": "2.0.0-pre.13",
3
+ "version": "2.0.0-pre.15",
4
4
  "nbbpm": {
5
5
  "compatibility": "^3.7.0"
6
6
  },
@@ -3,7 +3,7 @@
3
3
  <div class="d-flex flex-column flex-md-row">
4
4
  <div class="flex-shrink-0 d-flex flex-column gap-3 border-end-md text-sm mb-3 pe-4" style="flex-basis: 240px !important;">
5
5
  <div class="d-grid gap-1">
6
- <a class="btn btn-ghost ff-secondary border btn-sm justify-content-start" href="{config.relative_path}/{type_path}/{targetId}">
6
+ <a class="btn btn-ghost ff-secondary border btn-sm justify-content-start" href="{config.relative_path}/{type_path}/{encodeURIComponent(targetId)}">
7
7
  <i class="fa fa-fw fa-external-link text-primary"></i>
8
8
  [[flags:go-to-target]]
9
9
  </a>
@@ -1,6 +1,6 @@
1
1
  <li component="post" class="posts-list-item {{{ if ./deleted }}} deleted{{{ else }}}{{{ if ./topic.deleted }}} deleted{{{ end }}}{{{ end }}}{{{ if ./topic.scheduled }}} scheduled{{{ end }}}" data-pid="{./pid}" data-uid="{./uid}">
2
2
  <hr/>
3
- <a class="topic-title fw-semibold fs-5 mb-2 text-reset text-break d-block" href="{config.relative_path}/post/{./pid}">
3
+ <a class="topic-title fw-semibold fs-5 mb-2 text-reset text-break d-block" href="{config.relative_path}/post/{encodeURIComponent(./pid)}">
4
4
  {{{ if ./isMainPost }}}<i class="fa fa-book text-muted" title="[[topic:topic]]"></i> {{{ end }}}{./topic.title}
5
5
  </a>
6
6
 
@@ -2,7 +2,7 @@
2
2
  <nav class="topic-list-header d-flex flex-nowrap my-2 p-0 border-0 rounded">
3
3
  <div class="d-flex flex-row p-2 text-bg-light gap-1 border rounded w-100 align-items-center">
4
4
  <div component="category/controls" class="d-flex me-auto mb-0 gap-2 flex-wrap">
5
- {{{ if template.category }}}
5
+ {{{ if (template.category || template.world) }}}
6
6
  <!-- IMPORT partials/category/watch.tpl -->
7
7
  <!-- IMPORT partials/tags/filter-dropdown-left.tpl -->
8
8
  <!-- IMPORT partials/category/sort.tpl -->
@@ -36,7 +36,7 @@
36
36
  </div>
37
37
 
38
38
  <div class="d-flex gap-1 align-items-center">
39
- {{{ if template.category }}}
39
+ {{{ if (template.category || template.world) }}}
40
40
  {{{ if privileges.topics:create }}}
41
41
  <a href="{config.relative_path}/compose?cid={cid}" component="category/post" id="new_topic" class="btn btn-primary btn-sm text-nowrap" data-ajaxify="false" role="button">[[category:new-topic-button]]</a>
42
42
  {{{ end }}}