Barış Soner Uşaklı 3 years ago
parent 23676c47ba
commit d17e413642

@ -48,7 +48,15 @@ define('persona/quickreply', [
return alerts.error(err); return alerts.error(err);
} }
if (data && data.queued) { if (data && data.queued) {
alerts.success(data.message); alerts.alert({
type: 'success',
title: '[[global:alert.success]]',
message: data.message,
timeout: 10000,
clickfn: function () {
ajaxify.go(`/post-queue#${data.id}`);
},
});
} }
components.get('topic/quickreply/text').val(''); components.get('topic/quickreply/text').val('');

@ -109,7 +109,7 @@
<i class="fa fa-fw fa-gear"></i> <span>[[user:settings]]</span> <i class="fa fa-fw fa-gear"></i> <span>[[user:settings]]</span>
</a> </a>
</li> </li>
<!-- IF showModMenu --> {{{ if showModMenu }}}
<li role="presentation" class="divider"></li> <li role="presentation" class="divider"></li>
<li class="dropdown-header">[[pages:moderator-tools]]</li> <li class="dropdown-header">[[pages:moderator-tools]]</li>
<li> <li>
@ -127,7 +127,16 @@
<i class="fa fa-fw fa-ban"></i> <span>[[pages:ip-blacklist]]</span> <i class="fa fa-fw fa-ban"></i> <span>[[pages:ip-blacklist]]</span>
</a> </a>
</li> </li>
<!-- ENDIF showModMenu --> {{{ else }}}
{{{ if postQueueEnabled }}}
<li>
<a href="{relative_path}/post-queue">
<i class="fa fa-fw fa-list-alt"></i> <span>[[pages:post-queue]]</span>
</a>
</li>
{{{ end }}}
{{{ end }}}
<li role="presentation" class="divider"></li> <li role="presentation" class="divider"></li>
<li component="user/logout"> <li component="user/logout">
<form method="post" action="{relative_path}/logout"> <form method="post" action="{relative_path}/logout">

@ -7,10 +7,12 @@
<div class="col-xs-12"> <div class="col-xs-12">
<div class="post-queue preventSlideout posts-list"> <div class="post-queue preventSlideout posts-list">
{{{ if !posts.length }}} {{{ if !posts.length }}}
{{{ if isAdmin }}}
<p class="panel-body"> <p class="panel-body">
[[post-queue:description, {config.relative_path}/admin/settings/post#post-queue]] [[post-queue:description, {config.relative_path}/admin/settings/post#post-queue]]
</p> </p>
{{{ end }}} {{{ end }}}
{{{ end }}}
{{{ each posts }}} {{{ each posts }}}
<div class="panel panel-default" data-id="{posts.id}"> <div class="panel panel-default" data-id="{posts.id}">
@ -62,9 +64,14 @@
</div> </div>
</div> </div>
<div class="panel-footer text-right"> <div class="panel-footer text-right">
<div class="btn-group"> <div>
<button class="btn btn-success btn-xs" data-action="accept"><i class="fa fa-check"></i> [[post-queue:accept]] </button> {{{ if canAccept }}}
<button class="btn btn-danger btn-xs" data-action="reject"><i class="fa fa-times"></i> [[post-queue:reject]]</button> <button class="btn btn-danger btn-xs" data-action="reject"><i class="fa fa-fw fa-times"></i> [[post-queue:reject]]</button>
<button class="btn btn-info btn-xs" data-action="notify"><i class="fa fa-fw fa-bell-o"></i> [[post-queue:notify]]</button>
<button class="btn btn-success btn-xs" data-action="accept"><i class="fa fa-fw fa-check"></i> [[post-queue:accept]] </button>
{{{ else }}}
<button class="btn btn-danger btn-xs" data-action="reject"><i class="fa fa-fw fa-times"></i> [[post-queue:remove]]</button>
{{{ end }}}
</div> </div>
</div> </div>
</div> </div>

Loading…
Cancel
Save