Skip to content

Commit

Permalink
Update style
Browse files Browse the repository at this point in the history
  • Loading branch information
SeriaWei committed Jan 27, 2024
1 parent 86d8865 commit b46f90f
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions src/ZKEACMS.WebHost/Views/EventViewer/ViewLog.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,22 @@
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
@foreach (var item in Model)
{
<div class="panel @(item.LogLevel== Easy.Logging.LogLevel.Error?"panel-danger":"panel-info")">
<div class="panel-heading" role="tab" id="headingOne">
<h5 class="panel-title">
string levelClass = null;
if (item.LogLevel == Easy.Logging.LogLevel.Error)
{
levelClass = "panel-danger";
}
else if (item.LogLevel == Easy.Logging.LogLevel.Warn)
{
levelClass = "panel-warning";
}
else
{
levelClass = "panel-info";
}
<div class="panel @(levelClass)">
<div class="panel-heading" role="tab" id="headingOne" style="background-image:none">
<h5 class="panel-title" style="font-size:inherit">
<a role="button" data-toggle="collapse" data-parent="#accordion" href="#[email protected]" aria-expanded="false" aria-controls="[email protected]">
@using (var reader = new StringReader(item.Message))
{
Expand Down

0 comments on commit b46f90f

Please sign in to comment.