mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 08:44:49 +00:00
c53e963537
Closes #121 and #136
48 lines
1.1 KiB
PHP
48 lines
1.1 KiB
PHP
@extends('layouts.app')
|
|
|
|
@push('scripts')
|
|
<script type="text/javascript" src="{{mix('js/timeline.js')}}"></script>
|
|
@endpush
|
|
|
|
@section('content')
|
|
|
|
<div class="container">
|
|
<div class="col-12 col-md-8 offset-md-2 pt-4">
|
|
@if ($errors->any())
|
|
<div class="alert alert-danger">
|
|
<ul>
|
|
@foreach ($errors->all() as $error)
|
|
<li>{{ $error }}</li>
|
|
@endforeach
|
|
</ul>
|
|
</div>
|
|
@endif
|
|
|
|
@include('timeline.partial.new-form')
|
|
|
|
<div class="timeline-feed my-5" data-timeline="personal">
|
|
@foreach($timeline as $item)
|
|
|
|
@include('status.template')
|
|
|
|
@endforeach
|
|
@if($timeline->count() == 0)
|
|
<div class="card">
|
|
<div class="card-body py-5">
|
|
<div class="d-flex justify-content-center align-items-center">
|
|
<p class="lead font-weight-bold mb-0">{{ __('timeline.emptyPersonalTimeline') }}</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endif
|
|
</div>
|
|
<div class="d-flex justify-content-center">
|
|
{{$timeline->links()}}
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@endsection
|