Initial commit
This commit is contained in:
4
tests/templates/README.md
Normal file
4
tests/templates/README.md
Normal file
@@ -0,0 +1,4 @@
|
||||
# Mock application templates
|
||||
|
||||
Jinja templates for testing can be found in this directory.
|
||||
|
||||
24
tests/templates/base.html
Normal file
24
tests/templates/base.html
Normal file
@@ -0,0 +1,24 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{{ title }}</title>
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
|
||||
</head>
|
||||
<body class="bg-white">
|
||||
{% include "header.html" %}
|
||||
|
||||
<main>
|
||||
<div class="container">
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
</main>
|
||||
|
||||
{% include "footer.html" %}
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
12
tests/templates/footer.html
Normal file
12
tests/templates/footer.html
Normal file
@@ -0,0 +1,12 @@
|
||||
<footer class="footer mt-5 bg-tertiary">
|
||||
<div class="container">
|
||||
<nav class="navbar navbar-expand-sm text-light">
|
||||
<div class="container">
|
||||
<p class="col-md-4 mb-0 text-muted">
|
||||
© {{ current_year }} Andrew Bryant
|
||||
</p>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
17
tests/templates/header.html
Normal file
17
tests/templates/header.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<header>
|
||||
<nav class="navbar navbar-expand-sm sticky-top bg-light" data-bs-theme="light">
|
||||
<div class="container">
|
||||
<button class="navbar-toggler" type="button"
|
||||
data-bs-toggle="collapse"
|
||||
data-bs-target="#menu-bar-items"
|
||||
aria-controls="menu-bar-items"
|
||||
aria-expanded="false"
|
||||
aria-label="Toggle menu bar">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="menu-bar-items">
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
Reference in New Issue
Block a user