2017-02-09 22:18:27 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% load wagtailimages_tags %}
|
|
|
|
|
2017-02-19 20:35:46 +00:00
|
|
|
{% block content %}
|
2022-05-27 23:03:50 +00:00
|
|
|
{% include "base/include/header-hero.html" %}
|
|
|
|
|
2017-03-29 07:40:11 +00:00
|
|
|
<div class="container bread-detail">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
2022-05-27 23:03:50 +00:00
|
|
|
<div class="col-md-7">
|
2017-03-29 07:40:11 +00:00
|
|
|
<div class="row">
|
|
|
|
{% if page.introduction %}
|
2022-05-27 23:03:50 +00:00
|
|
|
<p class="bread-detail__introduction">
|
2017-03-29 07:40:11 +00:00
|
|
|
{{ page.introduction }}
|
|
|
|
</p>
|
2017-02-26 18:02:11 +00:00
|
|
|
{% endif %}
|
2017-03-29 07:40:11 +00:00
|
|
|
|
2022-05-27 23:03:50 +00:00
|
|
|
<div class="hidden-md-down">
|
|
|
|
{{ page.body }}
|
|
|
|
</div>
|
2017-03-29 07:40:11 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2022-05-27 23:03:50 +00:00
|
|
|
<div class="col-md-4 col-md-offset-1">
|
2017-03-29 07:40:11 +00:00
|
|
|
<div class="row">
|
2022-05-27 23:03:50 +00:00
|
|
|
<div class="bread-detail__meta">
|
2017-03-29 07:40:11 +00:00
|
|
|
{% if page.origin %}
|
2022-05-27 23:03:50 +00:00
|
|
|
<p class="bread-detail__meta-title">Origin</p>
|
|
|
|
<p class="bread-detail__meta-content">{{ page.origin }}</p>
|
2017-02-26 18:02:11 +00:00
|
|
|
{% endif %}
|
2017-03-29 07:40:11 +00:00
|
|
|
{% if page.bread_type %}
|
2022-05-27 23:03:50 +00:00
|
|
|
<p class="bread-detail__meta-title">Type</p>
|
|
|
|
<p class="bread-detail__meta-content">{{ page.bread_type }}</p>
|
2017-03-29 07:40:11 +00:00
|
|
|
{% endif %}
|
|
|
|
{% with ingredients=page.ingredients.all %}
|
|
|
|
{% if ingredients %}
|
2022-05-27 23:03:50 +00:00
|
|
|
<h4>Ingredients</h4>
|
|
|
|
<ul>
|
|
|
|
{% for ingredient in ingredients %}
|
|
|
|
<li>
|
2022-10-20 10:51:38 +00:00
|
|
|
{% if ingredient.live %}
|
|
|
|
{# If it's live, show as-is #}
|
|
|
|
{{ ingredient.name }}
|
|
|
|
{% else %}
|
|
|
|
{# EXAMPLE: we can show a placeholder element for instances that are not live #}
|
|
|
|
<span class="bread-detail__meta-ingredient--draft">
|
|
|
|
Draft ingredient
|
|
|
|
</span>
|
|
|
|
(draft)
|
|
|
|
{% endif %}
|
2022-05-27 23:03:50 +00:00
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
2017-03-29 07:40:11 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endwith %}
|
2022-05-27 23:03:50 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-7">
|
|
|
|
<div class="row hidden-md-up">
|
2022-07-26 03:30:37 +00:00
|
|
|
{{ page.body }}
|
2017-03-29 07:40:11 +00:00
|
|
|
</div>
|
2017-02-26 18:02:11 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-02-26 18:35:56 +00:00
|
|
|
{% endblock content %}
|