mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +00:00
Update Discover
This commit is contained in:
parent
f3ed2462a7
commit
a87cc2dcaa
2 changed files with 32 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue