fix: minor layout changes and cleanup.
This commit is contained in:
parent
667f0acd83
commit
52ff018c89
@ -51,10 +51,16 @@ class ArtworkController extends Controller
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function create()
|
||||
public function create(Request $request)
|
||||
{
|
||||
$user = auth()->user();
|
||||
$podcasts = $this->publishedPodcasts();
|
||||
$request->session()->flash('success', '<h4>PLEASE READ!</h4>
|
||||
<p>When you submit your artwork, it will be stored for approval,
|
||||
this is because malicious users were using the site to dox and
|
||||
other vile behaviors. You will not see it in the list of artworks
|
||||
until it has been approved.</p>
|
||||
<h4>YOU DON\'T HAVE TO SUBMIT IT MULTIPLE TIMES!</h4>');
|
||||
return view('artworks.submit', [
|
||||
'user' => $user,
|
||||
'pageTitle' => 'Submit New Artwork',
|
||||
@ -170,7 +176,8 @@ class ArtworkController extends Controller
|
||||
->save(Storage::disk('static')->path('/thumbnails') . '/' . $artwork->filename);
|
||||
ImageOptimizer::optimize(Storage::disk('static')->path('/artworks/' . $artwork->filename));
|
||||
ImageOptimizer::optimize(Storage::disk('static')->path('/thumbnails/' . $artwork->filename));
|
||||
return redirect('/artworks/' . $artwork->id);
|
||||
$request->session()->flash('success', '<h4>Your artwork has been submitted successfully</h4><p>Someone with permission will approve it for public consumption shortly, <strong>you do not need to submit it again.</strong> - TYFYC and ITM!</p>');
|
||||
return redirect('/artworks');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -18,6 +18,19 @@
|
||||
@endsection
|
||||
@section('page-content')
|
||||
<section class="pt-120 pb-90">
|
||||
@if (session('success'))
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="alert alert-success border border-success bg-transparent alert-dismissible" role="alert">
|
||||
{!! session('success') !!}
|
||||
<button type="button" class="btn-close text-success" data-bs-dismiss="alert" aria-label="Close"></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
<div class="container">
|
||||
<form action="/create-artwork" method="POST" name="create-artwork" enctype="multipart/form-data">
|
||||
@csrf
|
||||
|
||||
@ -21,6 +21,19 @@
|
||||
@endsection
|
||||
@section('page-content')
|
||||
<section class="pt-120 pb-90 masonary-wrapper-activation">
|
||||
@if (session('success'))
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="alert alert-success border border-success bg-transparent alert-dismissible" role="alert">
|
||||
{!! session('success') !!}
|
||||
<button type="button" class="btn-close text-success" data-bs-dismiss="alert" aria-label="Close"></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
{{ $artworks->links() }}
|
||||
|
||||
@ -6,9 +6,9 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
@if(View::hasSection('page-title'))
|
||||
<title>.: @yield('page-title') - No Agenda Art Generator :.</title>
|
||||
<title>@yield('page-title') .:. No Agenda Art Generator</title>
|
||||
@else
|
||||
<title>.: No Agenda Art Generator :.</title>
|
||||
<title>No Agenda Art Generator</title>
|
||||
@endif
|
||||
@include('partials.metabranding')
|
||||
@include('partials/favicon')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user