FEATURE #2389 @2h: group http request by url

This commit is contained in:
Michal Kváček
2017-03-28 00:27:31 +02:00
parent 848fa7b7cb
commit aa55ffe46a
6 changed files with 127 additions and 25 deletions
@@ -2,14 +2,43 @@
@section('pageHeading', trans('profiler::module.name'))
@section('headerButtons')
@if($displayGrouped == false)
<a class="btn btn-sm rounded btn-primary" href="{{route('profiler.index')}}"><i class="fa fa-list"></i></a>
@endif
<div class="pull-right">
@foreach(['0' => 'today', '7' => 'days', '30' => 'days', 'inf' => 'overall'] as $pastDay => $name)
@php $filter['pastDays'] = $pastDay; @endphp
<a class="btn btn-sm rounded @if($pastDays === (string)$pastDay) btn-primary @else btn-secondary @endif"
href="{{route('profiler.index', $filter)}}">{{trans_choice('profiler::module.index.pastDays.'.$name, $pastDay)}}</a>
@endforeach
</div>
@endsection
@if($displayGrouped == false)
@section('pageDescription', trans('profiler::module.listDescription'))
@else
@section('pageDescription', trans('profiler::module.groupedListDescription'))
@endif
@section('content')
<div class="card">
<div class="card-block">
@include('profiler::_partials.requestList', ['requests' => $httpLog])
@if ($displayGrouped == true)
@include('profiler::_partials.groupedRequestList', ['requests' => $httpLog])
@else
@include('profiler::_partials.requestList', ['requests' => $httpLog])
@endif
</div>
<div class="card-footer">
{!! $httpLog->render() !!}
</div>
</div>
@stop
@endsection