From 9f05df5951e94548adccd4c6ada49e3f7ffca8e1 Mon Sep 17 00:00:00 2001 From: Axel Date: Sun, 21 May 2023 18:16:02 +0200 Subject: [PATCH] Factoring template header and footer --- resources/views/cannotupload.blade.php | 15 +-- resources/views/download.blade.php | 121 ++++++++++++------------- resources/views/footer.blade.php | 12 ++- resources/views/header.blade.php | 8 +- resources/views/homepage.blade.php | 6 -- resources/views/layout.blade.php | 6 +- resources/views/login.blade.php | 7 -- resources/views/upload.blade.php | 33 +------ 8 files changed, 83 insertions(+), 125 deletions(-) diff --git a/resources/views/cannotupload.blade.php b/resources/views/cannotupload.blade.php index cb5ae53..ff1da64 100644 --- a/resources/views/cannotupload.blade.php +++ b/resources/views/cannotupload.blade.php @@ -1,18 +1,7 @@ @extends('layout') @section('content') -
-
-
-

- -
{{ config('app.name') }}
-

-
- -
- @lang('app.cannot-upload-blocked-ip') -
-
+
+ @lang('app.cannot-upload-blocked-ip')
@endsection diff --git a/resources/views/download.blade.php b/resources/views/download.blade.php index 7b6528a..535e0d7 100644 --- a/resources/views/download.blade.php +++ b/resources/views/download.blade.php @@ -72,78 +72,69 @@ @section('content')
-
-
-

-
 
-
{{ config('app.name') }}
-

+
+

+ @lang('app.preview-bundle') +

+ +
+

+ + @lang('app.upload-title') + + +

+

+ + @lang('app.created-at') + + +

+

+ + @lang('app.fullsize') + + +

+

+ + @lang('app.upload-description') + + +

-
-

- @lang('app.preview-bundle') -

+
+

Files

+
-
-

- - @lang('app.upload-title') - - -

-

- - @lang('app.created-at') - - -

-

- - @lang('app.fullsize') - - -

-

- - @lang('app.upload-description') - - -

-
+
    + +
+
-

Files

+

+ + + + +

- -
    - -
- -
-
-

- - - - -

-
-
- @include('partials.button', [ - 'way' => 'right', - 'text' => __('app.download-all'), - 'icon' => '', - 'action' => 'downloadAll' - ]) -
+
+ @include('partials.button', [ + 'way' => 'right', + 'text' => __('app.download-all'), + 'icon' => '', + 'action' => 'downloadAll' + ])
diff --git a/resources/views/footer.blade.php b/resources/views/footer.blade.php index 89ae5a1..24222e6 100644 --- a/resources/views/footer.blade.php +++ b/resources/views/footer.blade.php @@ -1 +1,11 @@ -
+
+ +
+ Made with + + + + by + axeloz +
+
diff --git a/resources/views/header.blade.php b/resources/views/header.blade.php index f3a8152..6aab67c 100644 --- a/resources/views/header.blade.php +++ b/resources/views/header.blade.php @@ -1 +1,7 @@ -
+
+ +

+
{{ config('app.name') }}
+

+
+
diff --git a/resources/views/homepage.blade.php b/resources/views/homepage.blade.php index 7e1b817..e037d76 100644 --- a/resources/views/homepage.blade.php +++ b/resources/views/homepage.blade.php @@ -106,12 +106,6 @@ @section('content')
-
-

-
{{ config('app.name') }}
-

-
-

@lang('app.existing-bundles')

diff --git a/resources/views/layout.blade.php b/resources/views/layout.blade.php index f6f289b..390bc94 100644 --- a/resources/views/layout.blade.php +++ b/resources/views/layout.blade.php @@ -17,8 +17,12 @@
-
+
+ @include('header') + @yield('content') + + @include('footer')
diff --git a/resources/views/login.blade.php b/resources/views/login.blade.php index 258e9d1..6cbb6a0 100644 --- a/resources/views/login.blade.php +++ b/resources/views/login.blade.php @@ -55,13 +55,6 @@ @section('content')
-
-

- -
{{ config('app.name') }}
-

-
-

@lang('app.authentication')

diff --git a/resources/views/upload.blade.php b/resources/views/upload.blade.php index d836483..5c3c702 100644 --- a/resources/views/upload.blade.php +++ b/resources/views/upload.blade.php @@ -64,7 +64,7 @@ // Getting all bundles store in local storage bundles = localStorage.getItem('bundles') - // If not bundle found, back to homepage + // If no bundle found, back to homepage if (bundles == null || bundles == '') { window.location.href = '/' return false @@ -368,7 +368,7 @@ if (navigator.clipboard) { navigator.clipboard.writeText(el.value) .then(() => { - alert("Copied to clipboard"); + //alert("Copied to clipboard"); }); } }, @@ -400,35 +400,6 @@ @section('content')
-
-

-
- {{-- If bundle is locked --}} -

- - - -

-
- - {{-- App's title --}} -
{{ config('app.name') }}
- - - {{-- Bundle status --}} -
- {{-- If bundle is expired --}} -

- - - -

- -
- -

-
- {{-- Modal box --}}