Inherit page title from base template

This commit is contained in:
Adam Goldsmith 2021-05-20 18:41:38 -04:00
parent 41e3485d71
commit 192848fb43
4 changed files with 3 additions and 5 deletions

View File

@ -1,7 +1,5 @@
{% extends "base.djhtml" %} {% extends "base.djhtml" %}
{% block title %} RecMaint {% endblock %}
{% block content %} {% block content %}
<h1> Tools </h1> <h1> Tools </h1>
<ul> <ul>

View File

@ -3,7 +3,7 @@
{% load markdownify %} {% load markdownify %}
{% load widget_tweaks %} {% load widget_tweaks %}
{% block title %} {{ tool.name }} - {{ task.name }} | RecMaint {% endblock %} {% block title %} {{ tool.name }} - {{ task.name }} | {{ block.super }} {% endblock %}
{% block content %} {% block content %}
<nav aria-label="breadcrumb"> <nav aria-label="breadcrumb">

View File

@ -1,6 +1,6 @@
{% extends "base.djhtml" %} {% extends "base.djhtml" %}
{% block title %} {{ tool }} {% endblock %} {% block title %} {{ tool }} | {{ block.super }} {% endblock %}
{% block content %} {% block content %}
<nav aria-label="breadcrumb"> <nav aria-label="breadcrumb">

View File

@ -7,7 +7,7 @@
<!-- Bootstrap CSS --> <!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous"> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
<title>{% block title %}{% endblock %}</title> <title>{% block title %}RecMaint{% endblock %}</title>
</head> </head>
<body> <body>
<nav class="navbar navbar-expand-lg navbar-light bg-light"> <nav class="navbar navbar-expand-lg navbar-light bg-light">