refactor for less duplication

refactored to use a common 'list.html'
refactored to allow some modularization (using blocks)
This commit is contained in:
2021-11-07 15:11:09 -06:00
parent 34000314e7
commit b7012b77df
8 changed files with 23 additions and 111 deletions

View File

@@ -1,17 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
{% load bootstrap5 %}
{% bootstrap_css %}
{% bootstrap_javascript %}
<meta charset="UTF-8">
<title>Bench Coach</title>
</head>
<h1>Bench Coach</h1>
{% extends "base.html" %}
{% block title %}Bench Coach Home{% endblock %}
{% block content %}
{% for page in pages %}
<li><a style="text-transform:capitalize;" href="{% url page %}">{{ page }} </a></li>
{% endfor %}
<body>
</body>
</html>
{% endblock %}