Internal: Align table headers and data to the left for stats page - refs BT#21957

pull/5794/head
christianbeeznst 1 year ago
parent 87561b6534
commit 2360e4bc3c
  1. 6
      assets/css/app.scss
  2. 2
      public/main/admin/statistics/index.php
  3. 6
      public/main/inc/lib/statistics.lib.php

@ -857,6 +857,12 @@ form .field {
@apply mt-4; @apply mt-4;
} }
.stats_table {
thead th {
@apply bg-gray-20 text-gray-90 font-semibold text-left px-4 py-3 border-b border-gray-30;
}
}
//@import 'primevue-md-light-indigo/theme.css'; //@import 'primevue-md-light-indigo/theme.css';
//@import '~primevue/resources/primevue.min.css'; //@import '~primevue/resources/primevue.min.css';
//@import '~primeflex/primeflex.css'; //@import '~primeflex/primeflex.css';

@ -930,7 +930,7 @@ switch ($report) {
); );
$scoreDisplay = ScoreDisplay::instance(); $scoreDisplay = ScoreDisplay::instance();
$table = new HTML_Table(['class' => 'table table-hover table-striped data_table']); $table = new HTML_Table(['class' => 'table table-hover table-striped data_table stats_table']);
$headers = [ $headers = [
get_lang('Name'), get_lang('Name'),
get_lang('Count'), get_lang('Count'),

@ -464,7 +464,7 @@ class Statistics
$isFileSize = false $isFileSize = false
) { ) {
$total = 0; $total = 0;
$content = '<table class="table table-hover table-striped data_table" cellspacing="0" cellpadding="3" width="90%"> $content = '<table class="table table-hover table-striped data_table stats_table" cellspacing="0" cellpadding="3" width="90%">
<thead><tr><th colspan="'.($showTotal ? '4' : '3').'">'.$title.'</th></tr></thead><tbody>'; <thead><tr><th colspan="'.($showTotal ? '4' : '3').'">'.$title.'</th></tr></thead><tbody>';
$i = 0; $i = 0;
foreach ($stats as $subtitle => $number) { foreach ($stats as $subtitle => $number) {
@ -1299,7 +1299,7 @@ class Statistics
} }
$scoreDisplay = ScoreDisplay::instance(); $scoreDisplay = ScoreDisplay::instance();
$table = new HTML_Table(['class' => 'data_table']); $table = new HTML_Table(['class' => 'data_table stats_table']);
$headers = [ $headers = [
get_lang('Name'), get_lang('Name'),
get_lang('Count'), get_lang('Count'),
@ -1382,7 +1382,7 @@ class Statistics
); );
} }
$table = new HTML_Table(['class' => 'data_table']); $table = new HTML_Table(['class' => 'data_table stats_table']);
$table->setHeaderContents(0, 0, get_lang('Username')); $table->setHeaderContents(0, 0, get_lang('Username'));
$table->setHeaderContents(0, 1, get_lang('First name')); $table->setHeaderContents(0, 1, get_lang('First name'));
$table->setHeaderContents(0, 2, get_lang('Last name')); $table->setHeaderContents(0, 2, get_lang('Last name'));

Loading…
Cancel
Save