nodebb-theme-persona 11.3.8 → 11.3.9
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
|
@@ -48,7 +48,15 @@ define('persona/quickreply', [
|
|
|
48
48
|
return alerts.error(err);
|
|
49
49
|
}
|
|
50
50
|
if (data && data.queued) {
|
|
51
|
-
alerts.
|
|
51
|
+
alerts.alert({
|
|
52
|
+
type: 'success',
|
|
53
|
+
title: '[[global:alert.success]]',
|
|
54
|
+
message: data.message,
|
|
55
|
+
timeout: 10000,
|
|
56
|
+
clickfn: function () {
|
|
57
|
+
ajaxify.go(`/post-queue#${data.id}`);
|
|
58
|
+
},
|
|
59
|
+
});
|
|
52
60
|
}
|
|
53
61
|
|
|
54
62
|
components.get('topic/quickreply/text').val('');
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
<i class="fa fa-fw fa-gear"></i> <span>[[user:settings]]</span>
|
|
110
110
|
</a>
|
|
111
111
|
</li>
|
|
112
|
-
|
|
112
|
+
{{{ if showModMenu }}}
|
|
113
113
|
<li role="presentation" class="divider"></li>
|
|
114
114
|
<li class="dropdown-header">[[pages:moderator-tools]]</li>
|
|
115
115
|
<li>
|
|
@@ -127,7 +127,16 @@
|
|
|
127
127
|
<i class="fa fa-fw fa-ban"></i> <span>[[pages:ip-blacklist]]</span>
|
|
128
128
|
</a>
|
|
129
129
|
</li>
|
|
130
|
-
|
|
130
|
+
{{{ else }}}
|
|
131
|
+
{{{ if postQueueEnabled }}}
|
|
132
|
+
<li>
|
|
133
|
+
<a href="{relative_path}/post-queue">
|
|
134
|
+
<i class="fa fa-fw fa-list-alt"></i> <span>[[pages:post-queue]]</span>
|
|
135
|
+
</a>
|
|
136
|
+
</li>
|
|
137
|
+
{{{ end }}}
|
|
138
|
+
{{{ end }}}
|
|
139
|
+
|
|
131
140
|
<li role="presentation" class="divider"></li>
|
|
132
141
|
<li component="user/logout">
|
|
133
142
|
<form method="post" action="{relative_path}/logout">
|
package/templates/post-queue.tpl
CHANGED
|
@@ -7,10 +7,12 @@
|
|
|
7
7
|
<div class="col-xs-12">
|
|
8
8
|
<div class="post-queue preventSlideout posts-list">
|
|
9
9
|
{{{ if !posts.length }}}
|
|
10
|
+
{{{ if isAdmin }}}
|
|
10
11
|
<p class="panel-body">
|
|
11
12
|
[[post-queue:description, {config.relative_path}/admin/settings/post#post-queue]]
|
|
12
13
|
</p>
|
|
13
14
|
{{{ end }}}
|
|
15
|
+
{{{ end }}}
|
|
14
16
|
|
|
15
17
|
{{{ each posts }}}
|
|
16
18
|
<div class="panel panel-default" data-id="{posts.id}">
|
|
@@ -62,9 +64,14 @@
|
|
|
62
64
|
</div>
|
|
63
65
|
</div>
|
|
64
66
|
<div class="panel-footer text-right">
|
|
65
|
-
<div
|
|
66
|
-
|
|
67
|
-
<button class="btn btn-danger btn-xs" data-action="reject"><i class="fa fa-times"></i> [[post-queue:reject]]</button>
|
|
67
|
+
<div>
|
|
68
|
+
{{{ if canAccept }}}
|
|
69
|
+
<button class="btn btn-danger btn-xs" data-action="reject"><i class="fa fa-fw fa-times"></i> [[post-queue:reject]]</button>
|
|
70
|
+
<button class="btn btn-info btn-xs" data-action="notify"><i class="fa fa-fw fa-bell-o"></i> [[post-queue:notify]]</button>
|
|
71
|
+
<button class="btn btn-success btn-xs" data-action="accept"><i class="fa fa-fw fa-check"></i> [[post-queue:accept]] </button>
|
|
72
|
+
{{{ else }}}
|
|
73
|
+
<button class="btn btn-danger btn-xs" data-action="reject"><i class="fa fa-fw fa-times"></i> [[post-queue:remove]]</button>
|
|
74
|
+
{{{ end }}}
|
|
68
75
|
</div>
|
|
69
76
|
</div>
|
|
70
77
|
</div>
|