Use call block.super

This commit is contained in:
George Lacey 2021-05-11 05:52:39 +01:00
parent d2d8b9012c
commit 89163abbfb
2 changed files with 5 additions and 3 deletions

View File

@ -4,13 +4,14 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
{% block script %}
{% load static %}
{% load compress %}
{% compress css %}
<link type="text/x-scss" href="{% static 'theme.scss' %}" rel="stylesheet" media="screen">
{% endcompress %}
{% endblock %}
{% block script %}{% endblock %}
<style>{% block style %}{% endblock %}</style>
<title>{% block title %}Title{% endblock %}</title>
</head>

View File

@ -1,15 +1,16 @@
{% extends "borg/base.html" %}
{% load static %}
{% block title %}Borg Summary{% endblock %}
{% load static %}
{% block script %}
{{block.super}}
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
{{ hour_list|json_script:"hour_list" }}
<script src="{% static 'js/index.js' %}"></script>
{% endblock %}
{% block style %}
{{ block.super }}
.repo-container {
padding: 8px;
margin: 8px;