revert: topic event partial

main
Barış Soner Uşaklı 2 years ago
parent 849de65f1b
commit 6be43d905b

@ -1,26 +0,0 @@
<li component="topic/event" class="timeline-event" data-topic-event-id="{./id}" data-topic-event-type="{./type}">
<div class="timeline-badge">
<i class="fa {{{ if ./icon }}}{./icon}{{{ else }}}fa-circle{{{ end }}}"></i>
</div>
<span class="timeline-text">
{{{ if ./href}}}
<a href="{config.relative_path}{./href}">{./text}</a>
{{{ else }}}
{./text}
{{{ end }}}
&nbsp;
</span>
{{{ if ./user }}}
{{{ if ./user.system }}}
<span class="timeline-text">[[global:system-user]]</span>&nbsp;
{{{ else }}}
<span><a href="{config.relative_path}/user/{./user.userslug}">{buildAvatar(./user, "xs", true)} &nbsp; {./user.username}</a></span>&nbsp;
{{{ end }}}
{{{ end }}}
<span class="timeago timeline-text" title="{./timestampISO}"></span>
{{{ if privileges.isAdminOrMod }}}
&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>
{{{ end }}}
</li>

@ -71,11 +71,7 @@
<!-- IMPORT partials/topic/post.tpl -->
</li>
{{{ if (config.topicPostSort != "most_votes") }}}
{{{ each ./events}}}
<!-- IMPORT partials/topic/event.tpl -->
{{{ end }}}
{{{ end }}}
{renderTopicEvents(@index, config.topicPostSort)}
{{{end}}}
</ul>

Loading…
Cancel
Save