mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 14:18:27 +01:00
Fix #2792 use of wrong log badge colors
This commit is contained in:
parent
ec12392241
commit
c68cde86b1
@ -2,6 +2,10 @@
|
||||
|
||||
use yii\helpers\Html;
|
||||
use humhub\compat\CHtml;
|
||||
|
||||
/* @var $logEntries \humhub\modules\admin\models\Log[] */
|
||||
/* @var $pagination \yii\data\Pagination */
|
||||
|
||||
?>
|
||||
<div>
|
||||
<?= Yii::t('AdminModule.views_logging_index', 'Total {count} entries found.', ["{count}" => $pagination->totalCount]); ?>
|
||||
@ -18,10 +22,10 @@ use humhub\compat\CHtml;
|
||||
<?php
|
||||
$labelClass = "label-primary";
|
||||
if ($entry->level == \yii\log\Logger::LEVEL_WARNING) {
|
||||
$labelClass = "label-danger";
|
||||
$labelClass = "label-warning";
|
||||
$levelName = "Warning";
|
||||
} elseif ($entry->level == \yii\log\Logger::LEVEL_ERROR) {
|
||||
$labelClass = "label-warning";
|
||||
$labelClass = "label-danger";
|
||||
$levelName = "Error";
|
||||
} elseif ($entry->level == \yii\log\Logger::LEVEL_INFO) {
|
||||
$labelClass = "label-info";
|
||||
|
Loading…
x
Reference in New Issue
Block a user