namespace
This commit is contained in:
parent
c57f7ff2f9
commit
7e74ae6b0f
|
@ -233,19 +233,19 @@
|
|||
<div class="">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title"><i class="fa fa-folder-open-o"></i>
|
||||
<a href="{{ route('dcat-log-viewer') }}">logs</a>
|
||||
<a href="{{ route('zyimm-log-viewer') }}">logs</a>
|
||||
@if($dir)
|
||||
@php($tmp = '')
|
||||
@foreach(explode('/', $dir) as $v)
|
||||
@php($tmp .= '/'.$v)
|
||||
/
|
||||
<a href="{{ route('dcat-log-viewer', ['dir' => trim($tmp, '/')])}}">{{ $v }}</a>
|
||||
<a href="{{ route('zyimm-log-viewer', ['dir' => trim($tmp, '/')])}}">{{ $v }}</a>
|
||||
@endforeach
|
||||
@endif
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
<form action="{{ route('dcat-log-viewer') }}" style="display: inline-block;width: 220px;padding-left: 15px">
|
||||
<form action="{{ route('zyimm-log-viewer') }}" style="display: inline-block;width: 220px;padding-left: 15px">
|
||||
<div class="input-group-sm" style="display: inline-block;width: 100%">
|
||||
<input name="filename" class="form-control" value="{{ app('request')->get('filename') }}" type="text" placeholder="Search..." />
|
||||
</div>
|
||||
|
@ -256,7 +256,7 @@
|
|||
@if(! app('request')->get('filename'))
|
||||
@foreach($logDirs as $d)
|
||||
<li @if($d === $fileName) class="active" @endif>
|
||||
<a class="dir" href="{{ route('dcat-log-viewer', ['dir' => $d]) }}">
|
||||
<a class="dir" href="{{ route('zyimm-log-viewer', ['dir' => $d]) }}">
|
||||
<i class="fa fa-folder-o"></i>{{ basename($d) }}
|
||||
</a>
|
||||
</li>
|
||||
|
@ -283,9 +283,9 @@
|
|||
<div class="col-md-10">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<a href="{{ route('dcat-log-viewer.download', ['dir' => $dir, 'file' => $fileName, 'filename' => app('request')->get('filename')]) }}" class="btn btn-primary btn-sm download" style="color: #fff"><i class="fa-download fa"></i> {{ trans('Download') }}</a>
|
||||
<a href="{{ route('zyimm-log-viewer.download', ['dir' => $dir, 'file' => $fileName, 'filename' => app('request')->get('filename')]) }}" class="btn btn-primary btn-sm download" style="color: #fff"><i class="fa-download fa"></i> {{ trans('Download') }}</a>
|
||||
|
||||
{{-- <button class="btn btn-default btn-sm download"><i class="fa-trash-o fa"></i> {{ trans('Delete') }}</button>--}}
|
||||
{{-- <button class="btn btn-default btn-sm download"><i class="fa-trash-o fa"></i> {{ trans('Delete') }}</button>--}}
|
||||
|
||||
<form action="{{ app('request')->fullUrlWithQuery(['keyword' => null,]) }}" style="display: inline-block;width: 180px">
|
||||
<div class="input-group-sm" style="display: inline-block;width: 100%">
|
||||
|
@ -332,7 +332,7 @@
|
|||
@foreach($logs as $index => $log)
|
||||
<tr>
|
||||
<td>{{ $index + 1 }}</td>
|
||||
<td><span class="label bg-{{\Dcat\LogViewer\LogViewer::$levelColors[$log['level']]}}">{{ $log['level'] }}</span></td>
|
||||
<td><span class="label bg-{{\Zyimm\LogViewer\LogViewer::$levelColors[$log['level']]}}">{{ $log['level'] }}</span></td>
|
||||
<td><strong>{{ $log['env'] }}</strong></td>
|
||||
<td style="width:150px;">{{ $log['time'] }}</td>
|
||||
<td><pre>{{ $log['info'] }}</pre></td>
|
||||
|
|
Loading…
Reference in New Issue
Block a user