feat: Use homepage as base template
This commit is contained in:
parent
28567f31ca
commit
f628477e95
6 changed files with 4 additions and 46 deletions
|
@ -1,21 +0,0 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
|
||||
<title>Django Tea</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-8">
|
||||
<h1 class="mt-2">Django Tea</h1>
|
||||
<hr class="mt-0 mb-4">
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -1,4 +1,4 @@
|
|||
{% extends 'tea/base.html' %}
|
||||
{% extends 'homepage/base.html' %}
|
||||
|
||||
{% block content %}
|
||||
<h2>{{ tea.company.name }} - {{ tea.name }} ({{ tea.tea_type }})</h2>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends 'tea/base.html' %}
|
||||
{% extends 'homepage/base.html' %}
|
||||
|
||||
{% block content %}
|
||||
{% for company in company_list %}
|
||||
|
|
|
@ -1,21 +0,0 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
|
||||
<title>Django Wine</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-8">
|
||||
<h1 class="mt-2">Django Wine</h1>
|
||||
<hr class="mt-0 mb-4">
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -1,4 +1,4 @@
|
|||
{% extends 'wine/base.html' %}
|
||||
{% extends 'homepage/base.html' %}
|
||||
|
||||
{% block content %}
|
||||
<h2>{{ wine.winery.name }} - {{ wine.name }}</h2>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends 'wine/base.html' %}
|
||||
{% extends 'homepage/base.html' %}
|
||||
|
||||
{% block content %}
|
||||
{% for winery in winery_list %}
|
||||
|
|
Reference in a new issue