aboutsummaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorFrankie B <git@diskfloppy.me>2023-07-16 02:59:30 +0100
committerFrankie B <git@diskfloppy.me>2023-07-16 02:59:30 +0100
commitb0cccfac6e21f35581145ed4c10dc4520f567737 (patch)
tree33fec213a6e3790f636f3173c57da10aa2d00565 /resources
parentf0a7a8af7c1ef93aa25b3a770a03669b198331b8 (diff)
Move ratelimit error to new minimal layout template
Diffstat (limited to 'resources')
-rw-r--r--resources/views/errors/ratelimit-guestbook.blade.php14
-rw-r--r--resources/views/layouts/minimal.blade.php11
2 files changed, 15 insertions, 10 deletions
diff --git a/resources/views/errors/ratelimit-guestbook.blade.php b/resources/views/errors/ratelimit-guestbook.blade.php
index fa29855..1890789 100644
--- a/resources/views/errors/ratelimit-guestbook.blade.php
+++ b/resources/views/errors/ratelimit-guestbook.blade.php
@@ -1,16 +1,10 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<html lang="en">
-<head>
- <title>Error 429: Overclocking Detected!</title>
- <link rel="stylesheet" href="{{ URL::asset ('css/minimal.css') }}"/>
-</head>
-
-<body>
+@extends('layouts.minimal')
+@section('title', 'Error 429: Overclocking Detected!')
+@section('content')
<h1>Error 429: Overclocking Detected!</h1>
<hr/>
<p>Whoa there! Your submissions are going at warp speed.</p>
<p>Remember you can only submit an entry <u>once every hour</u>!</p>
<br/>
Click <a href="/guestbook">here</a> to go back to the guestbook.
-</body>
-</html>
+@stop
diff --git a/resources/views/layouts/minimal.blade.php b/resources/views/layouts/minimal.blade.php
new file mode 100644
index 0000000..5cef094
--- /dev/null
+++ b/resources/views/layouts/minimal.blade.php
@@ -0,0 +1,11 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html lang="en">
+<head>
+ <title>@yield('title')</title>
+ <link rel="stylesheet" href="{{ URL::asset ('css/minimal.css') }}"/>
+</head>
+
+<body>
+@yield('content')
+</body>
+</html>