mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
Add collection views
This commit is contained in:
parent
de56ddd7b5
commit
a86a1ae401
2 changed files with 57 additions and 0 deletions
24
resources/views/collection/create.blade.php
Normal file
24
resources/views/collection/create.blade.php
Normal file
|
@ -0,0 +1,24 @@
|
|||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
|
||||
<collection-compose collection-id="{{$collection->id}}" profile-id="{{Auth::user()->profile_id}}"></collection-compose>
|
||||
|
||||
@endsection
|
||||
|
||||
@push('styles')
|
||||
<style type="text/css">
|
||||
</style>
|
||||
@endpush
|
||||
|
||||
@push('scripts')
|
||||
<script type="text/javascript" src="{{ mix('js/collectioncompose.js') }}"></script>
|
||||
<script type="text/javascript" src="{{ mix('js/compose.js') }}"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
new Vue({
|
||||
el: '#content'
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endpush
|
33
resources/views/collection/show.blade.php
Normal file
33
resources/views/collection/show.blade.php
Normal file
|
@ -0,0 +1,33 @@
|
|||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12 mt-5 py-5">
|
||||
<div class="text-center">
|
||||
<h1>Collection</h1>
|
||||
<h4 class="text-muted">{{$collection->title}}</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<collection-component collection-id="{{$collection->id}}"></collection-component>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
|
||||
@push('styles')
|
||||
<style type="text/css">
|
||||
</style>
|
||||
@endpush
|
||||
@push('scripts')
|
||||
<script type="text/javascript" src="{{mix('js/compose.js')}}"></script>
|
||||
<script type="text/javascript" src="{{mix('js/collections.js')}}"></script>
|
||||
<script type="text/javascript">
|
||||
new Vue({
|
||||
el: '#content'
|
||||
})
|
||||
</script>
|
||||
@endpush
|
Loading…
Reference in a new issue