diff options
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/error.ejs | 16 | ||||
| -rw-r--r-- | app/views/index.ejs | 15 | ||||
| -rw-r--r-- | app/views/page.ejs | 17 | ||||
| -rw-r--r-- | app/views/partials/header.ejs | 4 | ||||
| -rw-r--r-- | app/views/purge.ejs | 21 | ||||
| -rw-r--r-- | app/views/rebuild.ejs | 17 |
6 files changed, 90 insertions, 0 deletions
diff --git a/app/views/error.ejs b/app/views/error.ejs new file mode 100644 index 0000000..87296bc --- /dev/null +++ b/app/views/error.ejs @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html> +<head> + <title>Error: <%= code %></title> + <link rel="stylesheet" href="/css/globalstyles.css"> +</head> +<body> + <div id="main-container"> + <%- include('partials/header') %> + <div id="content"> + <h1>An error occurred (<%= code %>)</h1> + <p>Go <a href="/">home</a>?</p> + </div> + </div> +</body> +</html> diff --git a/app/views/index.ejs b/app/views/index.ejs new file mode 100644 index 0000000..ae21964 --- /dev/null +++ b/app/views/index.ejs @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> +<head> + <title><%= title %></title> + <link rel="stylesheet" href="/css/globalstyles.css"> +</head> +<body> + <div id="main-container"> + <%- include('partials/header') %> + <div id="content"> + <%- page %> + </div> + </div> +</body> +</html>
\ No newline at end of file diff --git a/app/views/page.ejs b/app/views/page.ejs new file mode 100644 index 0000000..331611a --- /dev/null +++ b/app/views/page.ejs @@ -0,0 +1,17 @@ +<!DOCTYPE html> +<html> +<head> + <title><%= title %></title> + <link rel="stylesheet" href="/css/globalstyles.css"> +</head> +<body> + <div id="main-container"> + <%- include('partials/header') %> + <div id="content"> + <%- content %> + <hr> + <span class=footer><a href="https://github.com/LMBishop/website">GitHub</a> | Page built: <%= buildTime %> | <a href="/special/purge/<%= path %>">Purge this page</a></span> + </div> + </div> +</body> +</html>
\ No newline at end of file diff --git a/app/views/partials/header.ejs b/app/views/partials/header.ejs new file mode 100644 index 0000000..25f5b2b --- /dev/null +++ b/app/views/partials/header.ejs @@ -0,0 +1,4 @@ +<h1>Leonardo Bishop</h1> +<div id="navbar"> + <%- navbar %> +</div>
\ No newline at end of file diff --git a/app/views/purge.ejs b/app/views/purge.ejs new file mode 100644 index 0000000..f36e482 --- /dev/null +++ b/app/views/purge.ejs @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html> +<head> + <title>Purge page</title> + <link rel="stylesheet" href="/css/globalstyles.css"> + <script src="https://code.jquery.com/jquery-3.6.0.min.js" ntegrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script> + <script src="/scripts/purge.js"></script> +</head> +<body> + <div id="main-container"> + <%- include('partials/header') %> + <div id="content"> + <h1>Purge page</h1> + <span id="response"></span> + <p>Are you sure you wish to purge the page <span class="highlight"><%= page %></span>?</p> + <p>The last build time for this page was <span class="highlight"><%= buildTime %></span> (<span class="highlight"><%= buildTimeRelative %></span> minutes ago).</p> + <button id="confirm" data-page="<%= page %>">Confirm</button> + </div> + </div> +</body> +</html>
\ No newline at end of file diff --git a/app/views/rebuild.ejs b/app/views/rebuild.ejs new file mode 100644 index 0000000..e2943f1 --- /dev/null +++ b/app/views/rebuild.ejs @@ -0,0 +1,17 @@ +<!DOCTYPE html> +<html> +<head> + <title>Rebuild</title> + <link rel="stylesheet" href="/css/globalstyles.css"> +</head> +<body> + <div id="main-container"> + <%- include('partials/header') %> + <div id="content"> + <h1>Rebuild</h1> + <p>Are you sure you wish to rebuild the page directory?</p> + <button>Confirm</button> + </div> + </div> +</body> +</html>
\ No newline at end of file |
