-
Notifications
You must be signed in to change notification settings - Fork 865
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
16 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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)) | ||
{ | ||
|