From c1b2869b1e07797a51a1425755f21daa17abb82f Mon Sep 17 00:00:00 2001 From: faissaloux Date: Sun, 31 Jul 2022 00:53:04 +0100 Subject: [PATCH 1/6] add pastebin tip to create and edit thread pages --- resources/views/forum/threads/create.blade.php | 3 +++ resources/views/forum/threads/edit.blade.php | 3 +++ routes/web.php | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/resources/views/forum/threads/create.blade.php b/resources/views/forum/threads/create.blade.php index fe15a46fb..936dc1d3a 100644 --- a/resources/views/forum/threads/create.blade.php +++ b/resources/views/forum/threads/create.blade.php @@ -22,6 +22,9 @@ Please search for your question before posting your thread by using the search box in the navigation bar. + + Want to share large code snippets? Share them through our pastebin. + diff --git a/resources/views/forum/threads/edit.blade.php b/resources/views/forum/threads/edit.blade.php index 161a2dac9..3d5672925 100644 --- a/resources/views/forum/threads/edit.blade.php +++ b/resources/views/forum/threads/edit.blade.php @@ -28,6 +28,9 @@ Please search for your question before posting your thread by using the search box in the navigation bar. + + Want to share large code snippets? Share them through our pastebin. + diff --git a/routes/web.php b/routes/web.php index e2261d80a..bb999b9d8 100644 --- a/routes/web.php +++ b/routes/web.php @@ -35,7 +35,7 @@ Route::view('rules', 'rules')->name('rules'); Route::view('terms', 'terms')->name('terms'); Route::view('privacy', 'privacy')->name('privacy'); -Route::get('bin/{paste?}', [HomeController::class, 'pastebin']); +Route::get('bin/{paste?}', [HomeController::class, 'pastebin'])->name('pastebin'); Route::get('articles/{article}/social.png', SocialImageController::class)->name('articles.image'); From cbbbab7ec51be170e3109cdb645f407e9bc33bb3 Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Mon, 1 Aug 2022 08:44:13 +0200 Subject: [PATCH 2/6] Update create.blade.php --- resources/views/forum/threads/create.blade.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/resources/views/forum/threads/create.blade.php b/resources/views/forum/threads/create.blade.php index 936dc1d3a..f1278a5a3 100644 --- a/resources/views/forum/threads/create.blade.php +++ b/resources/views/forum/threads/create.blade.php @@ -20,9 +20,7 @@ - Please search for your question before posting your thread by using the search box in the navigation bar. - - + Please search for your question before posting your thread by using the search box in the navigation bar.
Want to share large code snippets? Share them through our pastebin.
From b1279c12d7a1a8b663ede83b89427ff22b973e8e Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Mon, 1 Aug 2022 08:44:25 +0200 Subject: [PATCH 3/6] Update edit.blade.php --- resources/views/forum/threads/edit.blade.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/resources/views/forum/threads/edit.blade.php b/resources/views/forum/threads/edit.blade.php index 3d5672925..22e89559d 100644 --- a/resources/views/forum/threads/edit.blade.php +++ b/resources/views/forum/threads/edit.blade.php @@ -26,9 +26,7 @@ /> - Please search for your question before posting your thread by using the search box in the navigation bar. - - + Please search for your question before posting your thread by using the search box in the navigation bar.
Want to share large code snippets? Share them through our pastebin.
From d315dab0d3d655de3465bbf7ae8e42cd17986a1b Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Mon, 1 Aug 2022 08:45:01 +0200 Subject: [PATCH 4/6] Update edit.blade.php --- resources/views/forum/threads/edit.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/forum/threads/edit.blade.php b/resources/views/forum/threads/edit.blade.php index 22e89559d..ce7b67a3f 100644 --- a/resources/views/forum/threads/edit.blade.php +++ b/resources/views/forum/threads/edit.blade.php @@ -27,7 +27,7 @@ Please search for your question before posting your thread by using the search box in the navigation bar.
- Want to share large code snippets? Share them through our pastebin. + Want to share large code snippets? Share them through our pastebin.
From 61e2dcee131dea9beff96b518fbdc85e012ccdfc Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Mon, 1 Aug 2022 08:45:11 +0200 Subject: [PATCH 5/6] Update create.blade.php --- resources/views/forum/threads/create.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/forum/threads/create.blade.php b/resources/views/forum/threads/create.blade.php index f1278a5a3..4fdbdc425 100644 --- a/resources/views/forum/threads/create.blade.php +++ b/resources/views/forum/threads/create.blade.php @@ -21,7 +21,7 @@ Please search for your question before posting your thread by using the search box in the navigation bar.
- Want to share large code snippets? Share them through our pastebin. + Want to share large code snippets? Share them through our pastebin.
From fe6e2cc061d3e7c4661cfeba550c008b0b6b8499 Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Mon, 1 Aug 2022 08:45:23 +0200 Subject: [PATCH 6/6] Update web.php --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index bb999b9d8..e2261d80a 100644 --- a/routes/web.php +++ b/routes/web.php @@ -35,7 +35,7 @@ Route::view('rules', 'rules')->name('rules'); Route::view('terms', 'terms')->name('terms'); Route::view('privacy', 'privacy')->name('privacy'); -Route::get('bin/{paste?}', [HomeController::class, 'pastebin'])->name('pastebin'); +Route::get('bin/{paste?}', [HomeController::class, 'pastebin']); Route::get('articles/{article}/social.png', SocialImageController::class)->name('articles.image');