💄 (admin): use cards in dashboard
This commit is contained in:
parent
aa4577bf95
commit
1de1e63dc6
2 changed files with 25 additions and 25 deletions
|
@ -9,8 +9,8 @@
|
|||
$username = $login->username();
|
||||
$user = new User($username);
|
||||
$name = '';
|
||||
if ($user->nickname()) {
|
||||
$name = $user->nickname();
|
||||
if ($user->displayName()) {
|
||||
$name = $user->displayName();
|
||||
} elseif ($user->firstName()) {
|
||||
$name = $user->firstName();
|
||||
}
|
||||
|
@ -112,28 +112,28 @@
|
|||
</div>
|
||||
<div class="col-md-5">
|
||||
|
||||
<!-- Notifications -->
|
||||
<ul class="list-group list-group-striped b-0">
|
||||
<li class="list-group-item pt-0">
|
||||
<h4 class="m-0"><?php $L->p('Notifications') ?></h4>
|
||||
</li>
|
||||
<?php
|
||||
$logs = array_slice($syslog->db, 0, NOTIFICATIONS_AMOUNT);
|
||||
foreach ($logs as $log) {
|
||||
$phrase = $L->g($log['dictionaryKey']);
|
||||
echo '<li class="list-group-item">';
|
||||
echo $phrase;
|
||||
if (!empty($log['notes'])) {
|
||||
echo ' « <b>' . $log['notes'] . '</b> »';
|
||||
<div class="card">
|
||||
<h4 class="card-header"><?php $L->p('Notifications') ?></h4>
|
||||
<!-- Notifications -->
|
||||
<ul class="list-group list-group-striped b-0">
|
||||
<?php
|
||||
$logs = array_slice($syslog->db, 0, NOTIFICATIONS_AMOUNT);
|
||||
foreach ($logs as $log) {
|
||||
$phrase = $L->g($log['dictionaryKey']);
|
||||
echo '<li class="list-group-item">';
|
||||
echo $phrase;
|
||||
if (!empty($log['notes'])) {
|
||||
echo ' « <b>' . $log['notes'] . '</b> »';
|
||||
}
|
||||
echo '<br><span class="notification-date"><small>';
|
||||
echo Date::format($log['date'], DB_DATE_FORMAT, NOTIFICATIONS_DATE_FORMAT);
|
||||
echo ' [ ' . $log['username'] . ' ]';
|
||||
echo '</small></span>';
|
||||
echo '</li>';
|
||||
}
|
||||
echo '<br><span class="notification-date"><small>';
|
||||
echo Date::format($log['date'], DB_DATE_FORMAT, NOTIFICATIONS_DATE_FORMAT);
|
||||
echo ' [ ' . $log['username'] . ' ]';
|
||||
echo '</small></span>';
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -52,8 +52,8 @@ class pluginVisitsStats extends Plugin
|
|||
$labelVisitors = $L->g('Visitors');
|
||||
|
||||
return <<<EOF
|
||||
<div class="pluginVisitsStats mt-4 mb-4 pb-4 border-bottom">
|
||||
<h3 class="m-0 p-0"><i class="bi bi-bar-chart"></i>$label</h3>
|
||||
<div class="pluginVisitsStats mt-4 mb-4 pb-4 border-bottom card">
|
||||
<h3 class="card-header"><i class="bi bi-bar-chart"></i>$label</h3>
|
||||
<canvas id="visits-stats"></canvas>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in a new issue