bread_page.html 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. {% extends "base.html" %}
  2. {% load wagtailimages_tags %}
  3. {% block content %}
  4. <div class="container bread-detail">
  5. <div class="row">
  6. <div class="col-md-12">
  7. <div class="col-md-6">
  8. <div class="row">
  9. <h1>{{ page.title }}</h1>
  10. <figure class="hidden-md-up">
  11. {% image page.image width-500 %}
  12. </figure>
  13. {% if page.introduction %}
  14. <p class="introduction">
  15. {{ page.introduction }}
  16. </p>
  17. {% endif %}
  18. {{ page.body }}
  19. </div>
  20. </div>
  21. <div class="col-md-5 col-md-offset-1">
  22. <div class="row">
  23. <figure class="hidden-md-down">
  24. {% image page.image width-500 %}
  25. </figure>
  26. <ul class="bread-meta">
  27. {% if page.origin %}
  28. <li>
  29. <h4>Origin</h4>
  30. <p>{{ page.origin }}</p>
  31. </li>
  32. {% endif %}
  33. {% if page.bread_type %}
  34. <li>
  35. <h4>Type</h4>
  36. <p>{{ page.bread_type }}</p>
  37. </li>
  38. {% endif %}
  39. {% with ingredients=page.ingredients.all %}
  40. {% if ingredients %}
  41. <li>
  42. <h4>Ingredients</h4>
  43. <ul>
  44. {% for ingredient in ingredients %}
  45. <li>
  46. {{ ingredient.name }}
  47. </li>
  48. {% endfor %}
  49. </ul>
  50. </li>
  51. {% endif %}
  52. {% endwith %}
  53. </ul>
  54. </div>
  55. </div>
  56. </div>
  57. </div>
  58. </div>
  59. {% endblock content %}