Skip to content

Commit

Permalink
Update log.blade.php
Browse files Browse the repository at this point in the history
Remove space (suggested by #42)
  • Loading branch information
rap2hpoutre committed Sep 14, 2015
1 parent 7bf6a00 commit 2f3c2d0
Showing 1 changed file with 14 additions and 18 deletions.
32 changes: 14 additions & 18 deletions src/views/log.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,24 +71,20 @@
</tr>
</thead>
<tbody>
@foreach($logs as $key => $log)
<tr>
<td class="text-{{{$log['level_class']}}}"><span class="glyphicon glyphicon-{{{$log['level_img']}}}-sign" aria-hidden="true"></span> &nbsp;{{$log['level']}}</td>
<td class="date">{{{$log['date']}}}</td>
<td class="text">
@if ($log['stack'])
<a class="pull-right expand btn btn-default btn-xs" data-display="stack{{{$key}}}"><span class="glyphicon glyphicon-search"></span></a>
@endif
{{{$log['text']}}}
@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
</td>
</tr>
@endforeach
{{-- Remove extra space and try to preserve the readability of the source view, sorry if not --}}
@foreach($logs as $key => $log)
<tr>
<td class="text-{{{$log['level_class']}}}"><span class="glyphicon glyphicon-{{{$log['level_img']}}}-sign" aria-hidden="true"></span> &nbsp;{{$log['level']}}</td>
<td class="date">{{{$log['date']}}}</td>
<td class="text">
@if ($log['stack']) <a class="pull-right expand btn btn-default btn-xs" data-display="stack{{{$key}}}"><span class="glyphicon glyphicon-search"></span></a>@endif
{{{$log['text']}}}
@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
</td>
</tr>
@endforeach
{{-- Back to normal indentation --}}
</tbody>
</table>
@endif
Expand Down

0 comments on commit 2f3c2d0

Please sign in to comment.