mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +00:00
Update collection view
This commit is contained in:
parent
69ab8e9431
commit
8732578e43
1 changed files with 11 additions and 33 deletions
|
@ -3,42 +3,20 @@
|
||||||
@section('content')
|
@section('content')
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<collection-component
|
||||||
<div class="col-12 mt-5 py-5">
|
collection-id="{{$collection->id}}"
|
||||||
<div class="text-center">
|
collection-title="{{$collection->title}}"
|
||||||
<h1>Collection</h1>
|
collection-description="{{$collection->description}}"
|
||||||
<h4 class="text-muted">{{$collection->title}}</h4>
|
collection-visibility="{{$collection->visibility}}"
|
||||||
@auth
|
profile-id="{{$collection->profile_id}}"
|
||||||
@if($collection->profile_id == Auth::user()->profile_id)
|
profile-username="{{$collection->profile->username}}"
|
||||||
<div class="text-right">
|
></collection-component>
|
||||||
<form method="post" action="/api/local/collection/{{$collection->id}}">
|
|
||||||
@csrf
|
|
||||||
<input type="hidden" name="_method" value="DELETE">
|
|
||||||
<button type="submit" class="btn btn-outline-danger font-weight-bold btn-sm py-1">Delete</button>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
@endauth
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-12">
|
|
||||||
<collection-component collection-id="{{$collection->id}}"></collection-component>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@push('styles')
|
|
||||||
<style type="text/css">
|
|
||||||
</style>
|
|
||||||
@endpush
|
|
||||||
@push('scripts')
|
@push('scripts')
|
||||||
<script type="text/javascript" src="{{mix('js/compose.js')}}"></script>
|
<script type="text/javascript" src="{{mix('js/compose.js')}}" async></script>
|
||||||
<script type="text/javascript" src="{{mix('js/collections.js')}}"></script>
|
<script type="text/javascript" src="{{mix('js/collections.js')}}"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">App.boot()</script>
|
||||||
new Vue({
|
|
||||||
el: '#content'
|
|
||||||
})
|
|
||||||
</script>
|
|
||||||
@endpush
|
@endpush
|
Loading…
Reference in a new issue