Skip to content

Commit 41b91a1

Browse files
committed
refactor
1 parent a8febf2 commit 41b91a1

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

src/views/log.blade.php

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -115,21 +115,29 @@ class="list-group-item @if ($current_file == $file) llv-active @endif">
115115
@foreach($logs as $key => $log)
116116
<tr data-display="stack{{{$key}}}">
117117
@if ($standardFormat)
118-
<td class="text-{{{$log['level_class']}}}"><span class="fa fa-{{{$log['level_img']}}}"
119-
aria-hidden="true"></span> &nbsp;{{$log['level']}}</td>
118+
<td class="text-{{{$log['level_class']}}}">
119+
<span class="fa fa-{{{$log['level_img']}}}" aria-hidden="true"></span>&nbsp;&nbsp;{{$log['level']}}
120+
</td>
120121
<td class="text">{{$log['context']}}</td>
121122
@endif
122123
<td class="date">{{{$log['date']}}}</td>
123124
<td class="text">
124-
@if ($log['stack']) <button type="button" class="float-right expand btn btn-outline-dark btn-sm mb-2 ml-2"
125-
data-display="stack{{{$key}}}"><span
126-
class="fa fa-search"></span></button>@endif
125+
@if ($log['stack'])
126+
<button type="button"
127+
class="float-right expand btn btn-outline-dark btn-sm mb-2 ml-2"
128+
data-display="stack{{{$key}}}">
129+
<span class="fa fa-search"></span>
130+
</button>
131+
@endif
127132
{{{$log['text']}}}
128-
@if (isset($log['in_file'])) <br/>{{{$log['in_file']}}}@endif
133+
@if (isset($log['in_file']))
134+
<br/>{{{$log['in_file']}}}
135+
@endif
129136
@if ($log['stack'])
130137
<div class="stack" id="stack{{{$key}}}"
131138
style="display: none; white-space: pre-wrap;">{{{ trim($log['stack']) }}}
132-
</div>@endif
139+
</div>
140+
@endif
133141
</td>
134142
</tr>
135143
@endforeach

0 commit comments

Comments
 (0)