Use common content-header for all site sections

pull/44/head
Scot Hacker 2017-02-17 01:15:22 -08:00
rodzic bc54cb4c65
commit ed07adc2e0
6 zmienionych plików z 31 dodań i 24 usunięć

Wyświetl plik

@ -2,12 +2,7 @@
{% load wagtailimages_tags %}
{% block content-header %}
{{ page.title }}
<div class="image">
{% image page.image width-500 as photo %}
<img src="{{ photo.url }}" width="{{ photo.width }}" height="{{ photo.height }}" alt="{{ photo.alt }}" />
</div>
{% include "base/include/header.html" %}
{% endblock content-header %}
{% block content-body %}

Wyświetl plik

@ -1,4 +1,3 @@
{% load wagtailcore_tags %}
{{ footer_text|richtext }}

Wyświetl plik

@ -0,0 +1,16 @@
{% load wagtailcore_tags %}
{% load wagtailimages_tags %}
<div class="container">
<div class="image">
{% image page.image width-500 as photo %}
<img src="{{ photo.url }}" width="{{ photo.width }}" height="{{ photo.height }}" alt="{{ photo.alt }}" />
</div>
<div class="row">
<div class="col-md-7 col-md-offset-2">
<h2>{{ page.title }}</h2>
</div>
</div>
</div>

Wyświetl plik

@ -2,13 +2,7 @@
{% load wagtailimages_tags %}
{% block content-header %}
<div class="container">
<div class="row">
<div class="col-md-7 col-md-offset-2">
<h2>{{ page.title }}</h2>
</div>
</div>
</div>
{% include "base/include/header.html" %}
{% endblock content-header %}
{% block content-body %}

Wyświetl plik

@ -2,17 +2,21 @@
{% load wagtailimages_tags %}
{% block content-header %}
{{ page.title }}
{% for bread in resources %}
<div>
<div class="col-xs-12">
<div><a href="{{ bread.slug }}">{{ bread.title }}</a></div>
</div>
</div>
{% endfor %}
{% include "base/include/header.html" %}
{% endblock content-header %}
{% block content-body %}
<p>{{ page.introduction}}</p>
{% for bread in resources %}
<div>
<div class="col-xs-12">
<div><a href="{{ bread.slug }}">{{ bread.title }}</a></div>
</div>
</div>
{% endfor %}
{% if resources.has_other_pages %}
<div class="clearfix">
<div class="pagination-wrapper">

Wyświetl plik

@ -2,9 +2,8 @@
{% load wagtailcore_tags %}
{% load wagtailimages_tags %}
{% block content-header %}
{{ page.title }}
{% include "base/include/header.html" %}
{% endblock content-header %}
{% block content-body %}