Update Discover

This commit is contained in:
Daniel Supernault 2020-04-30 23:29:53 -06:00
parent f3ed2462a7
commit a87cc2dcaa
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
2 changed files with 32 additions and 3 deletions

View file

@ -135,6 +135,7 @@ class DiscoverController extends Controller
public function profilesDirectory(Request $request)
{
return redirect('/')->with('statusRedirect', 'The Profile Directory is unavailable at this time.');
return view('discover.profiles.home');
}
@ -144,6 +145,8 @@ class DiscoverController extends Controller
'page' => 'integer|max:10'
]);
return ['error' => 'Temporarily unavailable.'];
$page = $request->input('page') ?? 1;
$key = 'discover:profiles:page:' . $page;
$ttl = now()->addHours(12);

View file

@ -1,15 +1,41 @@
@extends('layouts.app')
{{-- @extends('layouts.blank') --}}
@section('content')
<timeline scope="home" layout="feed"></timeline>
@if(session('statusRedirect'))
<div class="alert alert-warning border-bottom">
<div class="row">
<div class="col-2">
<p class="mb-0"></p>
</div>
<div class="col-8">
<p class="font-weight-bold text-center mb-0">
{{ session('statusRedirect') }}
</p>
</div>
<div class="col-2 cursor-pointer" onclick="this.parentNode.parentNode.style.display='none'">
<p class="mb-0">
<i class="fas fa-times"></i>
</p>
</div>
</div>
</div>
@endif
<noscript>
<div class="container">
<p class="pt-5 text-center lead">Please enable javascript to view this content.</p>
</div>
</noscript>
<timeline scope="home" layout="feed"></timeline>
<div class="modal pr-0" tabindex="-1" role="dialog" id="composeModal">
<div class="modal-dialog" role="document">
<div class="modal-content">
<compose-modal></compose-modal>
</div>
</div>
</div>
@endsection
@push('scripts')