Even more simplification :D

This commit is contained in:
Jonny Barnes 2017-06-22 17:25:02 +01:00
parent 097a6fe1fc
commit 016a964252
2 changed files with 3 additions and 5 deletions

View file

@ -24,9 +24,7 @@ class NotesController extends Controller
$query->where('type', 'in-reply-to');
}])->paginate(10);
$homepage = ($request->path() == '/');
return view('notes.index', compact('notes', 'homepage'));
return view('notes.index', compact('notes'));
}
/**

View file

@ -18,6 +18,8 @@ Notes «
{!! $notes->render() !!}
@stop
@if (Request::path() == '/')@include('templates.bio')@endif
@section('scripts')
<script defer src="/assets/js/links.js"></script>
@ -27,5 +29,3 @@ Notes «
<script defer src="/assets/prism/prism.js"></script>
<link rel="stylesheet" href="/assets/prism/prism.css">
@stop
@if ($homepage === true)@include('templates.bio')@endif