Use base.html (and adapt it to my tastes)

This commit is contained in:
Klaas van Schelven
2023-11-14 18:51:42 +01:00
parent d76904016e
commit 5d1bb46a40
4 changed files with 11 additions and 37 deletions
+3 -9
View File
@@ -1,10 +1,6 @@
{% load static tailwind_tags %}
<html>
<head>
{% tailwind_css %}
</head>
<body>
{% extends "base.html" %}
{% block content %}
<div class="m-4">
{% for exception in exceptions %}
<h1 class="text-3xl mt-4">{{ exception.type }}</h1>
@@ -107,6 +103,4 @@ Issue grouper: <span class="font-mono whitespace-pre">"{{ issue_grouper }}"</spa
</div>
</body>
</html>
{% endblock %}
@@ -1,10 +1,6 @@
{% load static tailwind_tags %}
<html>
<head>
{% tailwind_css %}
</head>
{% extends "base.html" %}
<body>
{% block content %}
<h1>Events for issue {{ issue.id }}</h1>
{% for event in event_list %}
@@ -13,6 +9,4 @@
{% endfor %}
</body>
</html>
{% endblock %}
+3 -10
View File
@@ -1,10 +1,5 @@
{% load static tailwind_tags %}
<html>
<head>
{% tailwind_css %}
</head>
<body>
{% extends "base.html" %}
{% block content %}
<div class="m-4">
<h1 class="text-3xl mt-4">Issues for project {{ project_id }}</h1>
@@ -23,6 +18,4 @@
</div>
</body>
</html>
{% endblock %}
+2 -9
View File
@@ -2,18 +2,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Django Tailwind</title>
<title>{% block title %}{% endblock %}</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
{% tailwind_css %}
</head>
<body class="bg-gray-50 font-serif leading-normal tracking-normal">
<div class="container mx-auto">
<section class="flex items-center justify-center h-screen">
<h1 class="text-5xl">Django + Tailwind = ❤️</h1>
</section>
</div>
</body>
<body>{% block content %}{% endblock %}</body>
</html>