Add #30 - option to disable server scope column

This commit is contained in:
ruan 2018-02-28 10:05:06 +02:00
parent 4abcd21eaf
commit 9260bbdf4e
No known key found for this signature in database
GPG Key ID: 0D2EC1C52E469C0B
2 changed files with 6 additions and 0 deletions

View File

@ -392,6 +392,9 @@ class Page {
}
function print_table_rows($row, $array, $print_headers = true) {
if (!$this->settings->show_server_scope) {
unset($array[$this->t("column_server")]);
}
if ($print_headers && !$this->table_headers_printed) {
$headers = array_keys($array);
$this->table_print_headers($headers);

View File

@ -28,6 +28,9 @@ final class Settings {
// Clicking on the header name will send you to this address.
$this->name_link = '#';
// Show server scope column?
$this->show_server_scope = true;
// Show inactive bans? Removed bans will show (Unbanned), mutes will show (Unmuted), warnings will show (Expired).
$this->show_inactive_bans = true;