💄 (admin): improve about
This commit is contained in:
parent
e0308d4e57
commit
3f125edd08
2 changed files with 14 additions and 10 deletions
|
@ -12,15 +12,16 @@ checkRole(array('admin'));
|
||||||
|
|
||||||
// This function is used on the VIEW to show the tables
|
// This function is used on the VIEW to show the tables
|
||||||
function printTable($title, $array) {
|
function printTable($title, $array) {
|
||||||
echo '<h2 class="mb-2 mt-4">'.$title.'</h2>';
|
echo '<h2 class="mb-2">'.$title.'</h2>';
|
||||||
echo '<table class="table table-striped mt-3">
|
echo '<div class="card mb-4">';
|
||||||
|
echo '<table class="table m-0">
|
||||||
<tbody>
|
<tbody>
|
||||||
';
|
';
|
||||||
|
|
||||||
foreach ($array as $key=>$value) {
|
foreach ($array as $key=>$value) {
|
||||||
if($value===false) { $value = 'false'; }
|
if($value===false) { $value = 'false'; }
|
||||||
elseif($value===true) { $value = 'true'; }
|
elseif($value===true) { $value = 'true'; }
|
||||||
echo '<tr>';
|
echo '<tr class="card-tablebody">';
|
||||||
echo '<td>'.$key.'</td>';
|
echo '<td>'.$key.'</td>';
|
||||||
if (is_array($value)) {
|
if (is_array($value)) {
|
||||||
echo '<td>'.json_encode($value).'</td>';
|
echo '<td>'.json_encode($value).'</td>';
|
||||||
|
@ -33,6 +34,7 @@ function printTable($title, $array) {
|
||||||
echo '
|
echo '
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
';
|
';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,36 +3,37 @@
|
||||||
echo Bootstrap::pageTitle(array('title'=>$L->g('About'), 'icon'=>'info-circle'));
|
echo Bootstrap::pageTitle(array('title'=>$L->g('About'), 'icon'=>'info-circle'));
|
||||||
|
|
||||||
echo '
|
echo '
|
||||||
<table class="table table-striped mt-3">
|
<div class="card">
|
||||||
|
<table class="table m-0">
|
||||||
<tbody>
|
<tbody>
|
||||||
';
|
';
|
||||||
|
|
||||||
echo '<tr>';
|
echo '<tr class="card-tablebody">';
|
||||||
echo '<td>Engine</td>';
|
echo '<td>Engine</td>';
|
||||||
echo '<td>KOBLOG</td>';
|
echo '<td>KOBLOG</td>';
|
||||||
echo '</tr>';
|
echo '</tr>';
|
||||||
|
|
||||||
echo '<tr>';
|
echo '<tr class="card-tablebody">';
|
||||||
echo '<td>Koblog Version</td>';
|
echo '<td>Koblog Version</td>';
|
||||||
echo '<td>'.KOBLOG_VERSION.'</td>';
|
echo '<td>'.KOBLOG_VERSION.'</td>';
|
||||||
echo '</tr>';
|
echo '</tr>';
|
||||||
|
|
||||||
echo '<tr>';
|
echo '<tr class="card-tablebody">';
|
||||||
echo '<td>Koblog Codename</td>';
|
echo '<td>Koblog Codename</td>';
|
||||||
echo '<td>'.KOBLOG_CODENAME.'</td>';
|
echo '<td>'.KOBLOG_CODENAME.'</td>';
|
||||||
echo '</tr>';
|
echo '</tr>';
|
||||||
|
|
||||||
echo '<tr>';
|
echo '<tr class="card-tablebody">';
|
||||||
echo '<td>Koblog Build Number</td>';
|
echo '<td>Koblog Build Number</td>';
|
||||||
echo '<td>'.KOBLOG_BUILD.'</td>';
|
echo '<td>'.KOBLOG_BUILD.'</td>';
|
||||||
echo '</tr>';
|
echo '</tr>';
|
||||||
|
|
||||||
echo '<tr>';
|
echo '<tr class="card-tablebody">';
|
||||||
echo '<td>Disk usage</td>';
|
echo '<td>Disk usage</td>';
|
||||||
echo '<td>'.Filesystem::bytesToHumanFileSize(Filesystem::getSize(PATH_ROOT)).'</td>';
|
echo '<td>'.Filesystem::bytesToHumanFileSize(Filesystem::getSize(PATH_ROOT)).'</td>';
|
||||||
echo '</tr>';
|
echo '</tr>';
|
||||||
|
|
||||||
echo '<tr>';
|
echo '<tr class="card-tablebody">';
|
||||||
echo '<td><a href="'.HTML_PATH_ADMIN_ROOT.'developers'.'">Koblog Developers</a></td>';
|
echo '<td><a href="'.HTML_PATH_ADMIN_ROOT.'developers'.'">Koblog Developers</a></td>';
|
||||||
echo '<td></td>';
|
echo '<td></td>';
|
||||||
echo '</tr>';
|
echo '</tr>';
|
||||||
|
@ -40,4 +41,5 @@ echo '</tr>';
|
||||||
echo '
|
echo '
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
';
|
';
|
||||||
|
|
Loading…
Reference in a new issue