feat: only display resolve button if flag is open

main
Barış Soner Uşaklı 4 years ago
parent a48afd88f8
commit 959357c458

@ -110,6 +110,8 @@
<!-- IF posts.display_moderator_tools -->
{{{ if posts.flags.exists }}}
<li><a role="menuitem" tabindex="-1" href="{config.relative_path}/flags/{posts.flags.flagId}"><i class="fa fa-fw fa-exclamation-circle"></i> [[topic:view-flag-report]]</a></li>
{{{ if (posts.flags.state == "open") }}}
<li><a component="post/flagResolve" data-flagId="{posts.flags.flagId}" role="menuitem" tabindex="-1" href="#"><i class="fa fa-fw fa-check"></i> [[topic:resolve-flag]]</a></li>
{{{ end }}}
{{{ end }}}
<!-- ENDIF posts.display_moderator_tools -->
Loading…
Cancel
Save