nodebb-theme-harmony 2.0.0-pre.43 → 2.0.0-pre.45

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.43",
3
+ "version": "2.0.0-pre.45",
4
4
  "nbbpm": {
5
5
  "compatibility": "^3.7.0"
6
6
  },
@@ -59,8 +59,8 @@
59
59
  <div class="flex-shrink-0 d-flex gap-1 align-self-stretch align-self-md-start justify-content-end">
60
60
  {{{ if loggedIn }}}
61
61
  {{{ if !isSelf }}}
62
- <a component="account/unfollow" href="#" class="btn btn-info flex-fill{{{ if !isFollowing }}} hide{{{ end }}}">[[user:unfollow]]</a>
63
- <a component="account/follow" href="#" class="btn btn-primary flex-fill{{{ if isFollowing }}} hide{{{ end }}}">[[user:follow]]</a>
62
+ <a component="account/unfollow" href="#" class="btn btn-outline-warning flex-fill{{{ if (!isFollowing && !isFollowPending) }}} hide{{{ end }}}">[[user:{{{ if isFollowPending }}}cancel-follow{{{ else }}}unfollow{{{ end }}}]]</a>
63
+ <a component="account/follow" href="#" class="btn btn-primary flex-fill{{{ if (isFollowing || isFollowPending) }}} hide{{{ end }}}">[[user:follow]]</a>
64
64
  {{{ end }}}
65
65
  {{{ end }}}
66
66
 
@@ -108,7 +108,7 @@
108
108
  <a component="post/quote" href="#" class="btn btn-ghost btn-sm {{{ if !privileges.topics:reply }}}hidden{{{ end }}}" title="[[topic:quote]]"><i class="fa fa-fw fa-quote-right text-primary"></i></a>
109
109
 
110
110
  {{{ if ./announces }}}
111
- <a component="post/announce-count" href="#" class="btn btn-ghost btn-sm d-flex gap-2 align-items-center" title="[[activitypub:announcers]]"><i class="fa fa-share-alt text-primary"></i> {./announces}</a>
111
+ <a component="post/announce-count" href="#" class="btn btn-ghost btn-sm d-flex gap-2 align-items-center" title="[[topic:announcers]]"><i class="fa fa-share-alt text-primary"></i> {./announces}</a>
112
112
  {{{ end }}}
113
113
 
114
114
  {{{ if !reputation:disabled }}}
@@ -15,6 +15,13 @@
15
15
  <div class="alert alert-info" id="category-no-topics">[[recent:no-recent-topics]]</div>
16
16
  {{{ end }}}
17
17
 
18
+ {{{ if (selectedCategory.cid == "-1") }}}
19
+ <div class="py-3">
20
+ <h4>[[recent:uncategorized.title]]</h4>
21
+ <p>[[recent:uncategorized.intro]]</p>
22
+ </div>
23
+ {{{ end }}}
24
+
18
25
  <!-- IMPORT partials/topics_list.tpl -->
19
26
 
20
27
  {{{ if config.usePagination }}}
@@ -18,11 +18,11 @@
18
18
  {{{ end }}}
19
19
 
20
20
  <p class="description text-secondary text-sm w-100 {{{ if config.theme.centerHeaderElements }}}text-center{{{ end }}}">
21
- <a class="btn btn-sm btn-link" href="{config.relative_path}/popular?term=daily&cid=-1">[[activitypub:world.popular]]</a>
22
- <a class="btn btn-sm btn-link" href="{config.relative_path}/recent?cid=-1">[[activitypub:world.recent]]</a>
21
+ <a class="btn btn-sm btn-link" href="{config.relative_path}/popular?term=daily&cid=-1">[[world:popular]]</a>
22
+ <a class="btn btn-sm btn-link" href="{config.relative_path}/recent?cid=-1">[[world:recent]]</a>
23
23
  <button class="btn btn-sm btn-link" id="world-help">
24
24
  <i class="fa fa-question"></i>
25
- [[activitypub:world.help]]
25
+ [[world:help]]
26
26
  </button>
27
27
  </p>
28
28
  </div>
@@ -33,7 +33,17 @@
33
33
 
34
34
  <div class="category">
35
35
  {{{ if !topics.length }}}
36
- <div class="alert alert-info" id="category-no-topics">[[activitypub:no-topics]]</div>
36
+ <div class="row">
37
+ <div class="col-md-10 offset-md-1 d-flex align-items-center">
38
+ <div>
39
+ <h2 class="fs-4 mb-3">[[world:onboard.title]]</h2>
40
+ <p>[[world:onboard.what]]</p>
41
+ <p>[[world:onboard.why]]</p>
42
+ <p>[[world:onboard.how]]</p>
43
+ </div>
44
+ <i class="fa fa-comment-nodes fa-8x p-3"></i>
45
+ </div>
46
+ </div>
37
47
  {{{ end }}}
38
48
 
39
49
  <!-- IMPORT partials/topics_list.tpl -->