fix: privs headers

v1.18.x
Barış Soner Uşaklı 4 years ago
parent 4ddab38095
commit 92d1b8a65f

@ -35,9 +35,9 @@ module.exports = function (privileges) {
payload.keys = keys;
// This is a hack because I can't do {labels.users.length} to echo the count in templates.js
payload.columnCountUser = payload.labels.users.length + 2;
payload.columnCountUser = payload.labels.users.length + 3;
payload.columnCountUserOther = payload.labels.users.length - privileges.privilegeLabels.length;
payload.columnCountGroup = payload.labels.groups.length + 2;
payload.columnCountGroup = payload.labels.groups.length + 3;
payload.columnCountGroupOther = payload.labels.groups.length - privileges.privilegeLabels.length;
return payload;
};

@ -71,7 +71,7 @@ module.exports = function (privileges) {
payload.keys = keys;
// This is a hack because I can't do {labels.users.length} to echo the count in templates.js
payload.columnCount = payload.labels.users.length + 2;
payload.columnCount = payload.labels.users.length + 3;
return payload;
};

@ -2,7 +2,7 @@
<table class="table table-striped privilege-table">
<thead>
<tr class="privilege-table-header">
<th colspan="2"></th>
<th colspan="3"></th>
<th class="arrowed" colspan="3">
[[admin/manage/categories:privileges.section-viewing]]
</th>
@ -83,7 +83,7 @@
<table class="table table-striped privilege-table">
<thead>
<tr class="privilege-table-header">
<th colspan="2"></th>
<th colspan="3"></th>
<th class="arrowed" colspan="3">
[[admin/manage/categories:privileges.section-viewing]]
</th>

Loading…
Cancel
Save