fix: remove "new chat" button on flags when chat is disabled

main
Antosik 4 years ago committed by Julian Lam
parent bf8dcb519e
commit 91c930cbac

@ -143,7 +143,9 @@
</button> </button>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
<li><a href="{config.relative_path}/uid/{target.uid}">[[flags:view-profile]]</a></li> <li><a href="{config.relative_path}/uid/{target.uid}">[[flags:view-profile]]</a></li>
{{{ if !config.disableChat }}}
<li><a href="#" data-action="chat">[[flags:start-new-chat]]</a></li> <li><a href="#" data-action="chat">[[flags:start-new-chat]]</a></li>
{{{ end }}}
<li role="separator" class="divider"></li> <li role="separator" class="divider"></li>
{{{ if privileges.ban }}}<li><a href="#" data-action="ban">[[user:ban_account]]</a></li>{{{ end }}} {{{ if privileges.ban }}}<li><a href="#" data-action="ban">[[user:ban_account]]</a></li>{{{ end }}}
{{{ if privileges.admin:users }}} {{{ if privileges.admin:users }}}

Loading…
Cancel
Save