nodebb-theme-persona 12.1.5 → 12.1.7

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-persona",
3
- "version": "12.1.5",
3
+ "version": "12.1.7",
4
4
  "nbbpm": {
5
5
  "compatibility": "^2.0.0"
6
6
  },
@@ -0,0 +1,26 @@
1
+ <li component="topic/event" class="timeline-event" data-topic-event-id="{./id}" data-topic-event-type="{./type}">
2
+ <div class="timeline-badge">
3
+ <i class="fa {{{ if ./icon }}}{./icon}{{{ else }}}fa-circle{{{ end }}}"></i>
4
+ </div>
5
+ <span class="timeline-text">
6
+ {{{ if ./href}}}
7
+ <a href="{config.relative_path}{./href}">{./text}</a>
8
+ {{{ else }}}
9
+ {./text}
10
+ {{{ end }}}
11
+ &nbsp;
12
+ </span>
13
+ {{{ if ./user }}}
14
+ {{{ if ./user.system }}}
15
+ <span class="timeline-text">[[global:system-user]]</span>&nbsp;
16
+ {{{ else }}}
17
+ <span><a href="{config.relative_path}/user/{./user.userslug}">{buildAvatar(./user, "xs", true)} &nbsp; {./user.username}</a></span>&nbsp;
18
+ {{{ end }}}
19
+ {{{ end }}}
20
+ <span class="timeago timeline-text" title="{./timestampISO}"></span>
21
+
22
+ {{{ if privileges.isAdminOrMod }}}
23
+ &nbsp;<span component="topic/event/delete" data-topic-event-id="{./id}" data-topic-event-type="{./type}" class="timeline-text pointer" title="[[topic:delete-event]]"><i class="fa fa-trash"></i></span>
24
+ {{{ end }}}
25
+ </li>
26
+
@@ -71,7 +71,11 @@
71
71
 
72
72
  <!-- IMPORT partials/topic/post.tpl -->
73
73
  </li>
74
- {renderTopicEvents(@index, config.topicPostSort)}
74
+ {{{ if (config.topicPostSort != "most_votes") }}}
75
+ {{{ each ./events}}}
76
+ <!-- IMPORT partials/topic/event.tpl -->
77
+ {{{ end }}}
78
+ {{{ end }}}
75
79
  {{{end}}}
76
80
  </ul>
77
81