cleanup templates, except for base.html

pull/20/head
David Ray 2017-02-10 08:29:53 -05:00
rodzic a5a4aac429
commit e845b820cd
13 zmienionych plików z 20 dodań i 27 usunięć

Wyświetl plik

@ -2,12 +2,12 @@
{% load wagtailimages_tags %}
{% block content %}
{{ page.title }}
{{ 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>
</div>
{{ page.body }}
{% endblock content %}
{{ page.body }}
{% endblock content %}

Wyświetl plik

@ -10,4 +10,4 @@
</div>
{{ page.body }}
{% endblock content %}
{% endblock content %}

Wyświetl plik

@ -1,5 +1,6 @@
{% extends "base.html" %}
{% load wagtailcore_tags %}
{% block content %}
{{ page.intro|richtext }}

Wyświetl plik

@ -1,5 +1,6 @@
{% extends "base.html" %}
{% load wagtailcore_tags %}
{% block content %}
<h1>{{ page.title }}</h1>
{{ page.thank_you_text|richtext }}

Wyświetl plik

@ -1,15 +1,15 @@
{% if self.size == 'h2' %}
<h2>{{ self.heading_text }}</h2>
<h2>{{ self.heading_text }}</h2>
{% elif self.size == 'h3' %}
<h3>{{ self.heading_text }}</h3>
{% elif self.size == 'h3' %}
<h3>{{ self.heading_text }}</h3>
{% elif self.size == 'h4' %}
<h4>{{ self.heading_text }}</h4>
{% elif self.size == 'h4' %}
<h4>{{ self.heading_text }}</h4>
{% endif %}
{% comment %}
Content is coming from the StandardBlock StreamField
class within `blocks.py`
{% endcomment %}
Content is coming from the StandardBlock StreamField
class within `blocks.py`
{% endcomment %}

Wyświetl plik

@ -1,8 +1,6 @@
{% load wagtailimages_tags %}
<figure>
{% image self.image fill-600x600 %}
<figcaption>{{ self.caption }} - {{ self.attribution }}</figcaption>
{% image self.image fill-600x600 %}
<figcaption>{{ self.caption }} - {{ self.attribution }}</figcaption>
</figure>

Wyświetl plik

@ -1 +1 @@
{{ self }}
{{ self }}

Wyświetl plik

@ -3,7 +3,6 @@
{% block content %}
{{ page.title }}
{% for blog in blogs %}
<div>
<h2><a href="{{ blog.full_url }}">{{ blog.title }}</a></h2>

Wyświetl plik

@ -3,8 +3,7 @@
{% block content %}
{{ page.title }}
{% for bread in breads %}
<div><a href="{{ bread.slug }}">{{ bread.title }}</a></div>
{% endfor %}
{% endblock content %}
{% endblock content %}

Wyświetl plik

@ -4,7 +4,6 @@
{% block title %}Search{% if search_results %} results{% endif %}{% endblock %}
{% block content %}
<h1>
Search results{% if request.GET.query %} for “{{ request.GET.query }}”{% endif %}
</h1>

Wyświetl plik

@ -2,13 +2,10 @@
{% get_site_root as site_root %}
{% if calling_page|has_protocol_parent and calling_page.content_type.model == 'standardpage' %}
<div class="off-canvas position-left reveal-for-large bla" id="offCanvasLeft" data-off-canvas>
{% protocol_menu calling_page=calling_page %}
</div>
{% elif ancestor.has_children %}
<div class="off-canvas position-left reveal-for-large" id="offCanvasLeft" data-off-canvas>
<nav class="sidebar-nav">
<h3>In this section</h3>
@ -32,5 +29,4 @@
</ul>
</nav>
</div>
{% endif %}

Wyświetl plik

@ -1,7 +1,6 @@
{% load navigation_tags wagtailcore_tags %}
{% get_site_root as site_root %}
<div class="navigation-bar">
<ul id="main-menu">
{% for menuitem in menuitems %}

Wyświetl plik

@ -1,4 +1,5 @@
{% load navigation_tags wagtailcore_tags %}
<ul class="submenu">
{% for child in menuitems_children %}
<li><a href="{% pageurl child %}">{{ child.title }}</a></li>