1
0
Fork 0
forked from mirror/pixelfed
pixelfed/resources/views/timeline/personal.blade.php

53 lines
1.5 KiB
PHP
Raw Normal View History

2018-04-16 01:55:48 +00:00
@extends('layouts.app')
2018-05-26 22:42:47 +00:00
@push('scripts')
<script type="text/javascript" src="{{mix('js/timeline.js')}}"></script>
@endpush
2018-04-16 01:55:48 +00:00
@section('content')
<div class="container">
2018-05-26 22:42:47 +00:00
<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
2018-04-16 01:55:48 +00:00
<div class="card">
2018-05-26 22:42:47 +00:00
<div class="card-header font-weight-bold">New Post</div>
<div class="card-body" id="statusForm">
<form method="post" action="/timeline" enctype="multipart/form-data">
@csrf
2018-04-16 01:55:48 +00:00
<div class="form-group">
<label class="font-weight-bold text-muted small">Upload Image</label>
<input type="file" class="form-control-file" name="photo">
2018-04-16 01:55:48 +00:00
</div>
<div class="form-group">
<label class="font-weight-bold text-muted small">Caption</label>
<input type="text" class="form-control" name="caption" placeholder="Add a caption here">
2018-04-16 01:55:48 +00:00
</div>
2018-05-26 22:42:47 +00:00
<button type="submit" class="btn btn-outline-primary btn-block">Post</button>
2018-04-16 01:55:48 +00:00
</form>
</div>
</div>
<div class="timeline-feed my-5" data-timeline="personal">
2018-05-26 22:42:47 +00:00
@foreach($timeline as $item)
2018-05-26 22:42:47 +00:00
@include('status.template')
@endforeach
</div>
<div class="d-flex justify-content-center">
{{$timeline->links()}}
</div>
2018-04-16 01:55:48 +00:00
</div>
</div>
@endsection