Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
rap2hpoutre committed Jul 16, 2018
1 parent a8febf2 commit 41b91a1
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions src/views/log.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,21 +115,29 @@ class="list-group-item @if ($current_file == $file) llv-active @endif">
@foreach($logs as $key => $log)
<tr data-display="stack{{{$key}}}">
@if ($standardFormat)
<td class="text-{{{$log['level_class']}}}"><span class="fa fa-{{{$log['level_img']}}}"
aria-hidden="true"></span> &nbsp;{{$log['level']}}</td>
<td class="text-{{{$log['level_class']}}}">
<span class="fa fa-{{{$log['level_img']}}}" aria-hidden="true"></span>&nbsp;&nbsp;{{$log['level']}}
</td>
<td class="text">{{$log['context']}}</td>
@endif
<td class="date">{{{$log['date']}}}</td>
<td class="text">
@if ($log['stack']) <button type="button" class="float-right expand btn btn-outline-dark btn-sm mb-2 ml-2"
data-display="stack{{{$key}}}"><span
class="fa fa-search"></span></button>@endif
@if ($log['stack'])
<button type="button"
class="float-right expand btn btn-outline-dark btn-sm mb-2 ml-2"
data-display="stack{{{$key}}}">
<span class="fa fa-search"></span>
</button>
@endif
{{{$log['text']}}}
@if (isset($log['in_file'])) <br/>{{{$log['in_file']}}}@endif
@if (isset($log['in_file']))
<br/>{{{$log['in_file']}}}
@endif
@if ($log['stack'])
<div class="stack" id="stack{{{$key}}}"
style="display: none; white-space: pre-wrap;">{{{ trim($log['stack']) }}}
</div>@endif
</div>
@endif
</td>
</tr>
@endforeach
Expand Down

0 comments on commit 41b91a1

Please sign in to comment.