💄 (admin): improve about

This commit is contained in:
Kazhnuz 2025-01-18 20:04:58 +01:00
parent e0308d4e57
commit 3f125edd08
2 changed files with 14 additions and 10 deletions

View file

@ -12,15 +12,16 @@ checkRole(array('admin'));
// This function is used on the VIEW to show the tables
function printTable($title, $array) {
echo '<h2 class="mb-2 mt-4">'.$title.'</h2>';
echo '<table class="table table-striped mt-3">
echo '<h2 class="mb-2">'.$title.'</h2>';
echo '<div class="card mb-4">';
echo '<table class="table m-0">
<tbody>
';
foreach ($array as $key=>$value) {
if($value===false) { $value = 'false'; }
elseif($value===true) { $value = 'true'; }
echo '<tr>';
echo '<tr class="card-tablebody">';
echo '<td>'.$key.'</td>';
if (is_array($value)) {
echo '<td>'.json_encode($value).'</td>';
@ -33,6 +34,7 @@ function printTable($title, $array) {
echo '
</tbody>
</table>
</div>
';
}

View file

@ -3,36 +3,37 @@
echo Bootstrap::pageTitle(array('title'=>$L->g('About'), 'icon'=>'info-circle'));
echo '
<table class="table table-striped mt-3">
<div class="card">
<table class="table m-0">
<tbody>
';
echo '<tr>';
echo '<tr class="card-tablebody">';
echo '<td>Engine</td>';
echo '<td>KOBLOG</td>';
echo '</tr>';
echo '<tr>';
echo '<tr class="card-tablebody">';
echo '<td>Koblog Version</td>';
echo '<td>'.KOBLOG_VERSION.'</td>';
echo '</tr>';
echo '<tr>';
echo '<tr class="card-tablebody">';
echo '<td>Koblog Codename</td>';
echo '<td>'.KOBLOG_CODENAME.'</td>';
echo '</tr>';
echo '<tr>';
echo '<tr class="card-tablebody">';
echo '<td>Koblog Build Number</td>';
echo '<td>'.KOBLOG_BUILD.'</td>';
echo '</tr>';
echo '<tr>';
echo '<tr class="card-tablebody">';
echo '<td>Disk usage</td>';
echo '<td>'.Filesystem::bytesToHumanFileSize(Filesystem::getSize(PATH_ROOT)).'</td>';
echo '</tr>';
echo '<tr>';
echo '<tr class="card-tablebody">';
echo '<td><a href="'.HTML_PATH_ADMIN_ROOT.'developers'.'">Koblog Developers</a></td>';
echo '<td></td>';
echo '</tr>';
@ -40,4 +41,5 @@ echo '</tr>';
echo '
</tbody>
</table>
</div>
';