fix: privs headers

This commit is contained in:
Barış Soner Uşaklı
2020-11-30 01:12:34 -05:00
parent 4ddab38095
commit 92d1b8a65f
3 changed files with 5 additions and 5 deletions

View File

@@ -35,9 +35,9 @@ module.exports = function (privileges) {
payload.keys = keys; payload.keys = keys;
// This is a hack because I can't do {labels.users.length} to echo the count in templates.js // 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.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; payload.columnCountGroupOther = payload.labels.groups.length - privileges.privilegeLabels.length;
return payload; return payload;
}; };

View File

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

View File

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