Split index.html template into header, index, and footer

This commit is contained in:
Alan Orth 2021-03-11 22:41:22 +02:00
parent 08b83caeb4
commit 207d5af64a
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
3 changed files with 15 additions and 13 deletions

5
templates/footer.html Normal file
View File

@ -0,0 +1,5 @@
<footer class="footer mt-auto py-3 bg-light">
<div class="container">
<span class="text-muted">csv-metadata-quality v{{ cli_version }}</span>
</div>
</footer>

8
templates/head.html Normal file
View File

@ -0,0 +1,8 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Simple web interface for the DSpace CSV Metadata Quality tool.">
<meta name="author" content="Alan Orth">
<title>DSpace CSV Metadata Quality Checker</title>
<link href="{{ url_for('static', filename='css/style.min.css') }}" rel="stylesheet">
</head>

View File

@ -1,13 +1,6 @@
<!doctype html> <!doctype html>
<html lang="en" class="h-100"> <html lang="en" class="h-100">
<head> {% include 'head.html' %}
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Simple web interface for the DSpace CSV Metadata Quality tool.">
<meta name="author" content="Alan Orth">
<title>DSpace CSV Metadata Quality Checker</title>
<link href="{{ url_for('static', filename='css/style.min.css') }}" rel="stylesheet">
</head>
<body class="d-flex flex-column h-100"> <body class="d-flex flex-column h-100">
<main class="flex-shrink-0"> <main class="flex-shrink-0">
<div class="container"> <div class="container">
@ -21,10 +14,6 @@
</div> </div>
</main> </main>
<footer class="footer mt-auto py-3 bg-light"> {% include 'footer.html' %}
<div class="container">
<span class="text-muted">csv-metadata-quality v{{ cli_version }}</span>
</div>
</footer>
</body> </body>
</html> </html>