From df7d30a5de20cba96826e870f4da91aed410e96b Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 26 Mar 2019 13:13:30 -0600 Subject: [PATCH] Add Classic Compose UI fallback --- app/Http/Controllers/StatusController.php | 2 +- resources/views/status/compose.blade.php | 13 ++++ .../views/timeline/partial/new-form.blade.php | 77 ++++++++++++++++++- 3 files changed, 90 insertions(+), 2 deletions(-) create mode 100644 resources/views/status/compose.blade.php diff --git a/app/Http/Controllers/StatusController.php b/app/Http/Controllers/StatusController.php index e07431081..a77d6affc 100644 --- a/app/Http/Controllers/StatusController.php +++ b/app/Http/Controllers/StatusController.php @@ -95,7 +95,7 @@ class StatusController extends Controller { $this->authCheck(); - return redirect('/'); + return view('status.compose'); } public function store(Request $request) diff --git a/resources/views/status/compose.blade.php b/resources/views/status/compose.blade.php new file mode 100644 index 000000000..5ed1041dd --- /dev/null +++ b/resources/views/status/compose.blade.php @@ -0,0 +1,13 @@ +@extends('layouts.app') + +@section('content') + +
+
+
+ @include('timeline.partial.new-form') +
+
+
+ +@endsection \ No newline at end of file diff --git a/resources/views/timeline/partial/new-form.blade.php b/resources/views/timeline/partial/new-form.blade.php index 32aee7324..ebd4f5c95 100644 --- a/resources/views/timeline/partial/new-form.blade.php +++ b/resources/views/timeline/partial/new-form.blade.php @@ -1 +1,76 @@ - \ No newline at end of file +
+
+
{{__('Create New Post')}}
+
+
+ +
+ @csrf + + +
+
+ + +
+ + Max Size: @maxFileSize(). Supported formats: jpeg, png, gif, bmp. Limited to {{config('pixelfed.max_album_length')}} photos per post. + +
+
+ +

+ 0 + / + {{config('pixelfed.max_caption_length')}} +

+
+
+ +
+
+ +
+ +
+ + Set the visibility of this post. + +
+
+ +
+ + +
+ + Please mark all NSFW and controversial content, as per our content policy. + +
+
+ +
+ +
+ + No filter selected. + +
+
+ + +
+
+
+ +
+
+
\ No newline at end of file