{# Copyright (c) 2016 Jessica Tallon & Matt Molyneaux. This file is part of Inboxen. Licensed under the terms of the GNU AGPL, as published by the FSF, version 3 the or later #}
{% extends 'cms/help_base.html' %}
{% load wagtailcore_tags wagtailimages_tags %}

{% block breadcumbs %}
    <ul class="breadcrumb">
    {% for pg in page.get_ancestors %}
        {% if not pg.is_root %}<li><a href="{% pageurl pg %}">{{ pg.title }}</a></li>{% endif %}
    {% endfor %}
        <li class="active">{{ page.title }}</li>
    </ul>
{% endblock %}

{% block page_content %}
{% for person in page.people.all %}
    <p>
        <h3>{{ person.name }}</h3>
        <p>{% image person.image fill-300x400 %}</p>
        <p>{{ person.body|richtext }}</p>
    </p>
{% endfor %}
{% endblock %}

{# Copyright (c) 2016 Jessica Tallon & Matt Molyneaux. This file is part of Inboxen. Licensed under the terms of the GNU AGPL, as published by the FSF, version 3 the or later #}
{% extends 'cms/help_base.html' %}
{% load wagtailcore_tags wagtailimages_tags %}

{% block breadcumbs %}
    <ul class="breadcrumb">
    {% for pg in page.get_ancestors %}
        {% if not pg.is_root %}<li><a href="{% pageurl pg %}">{{ pg.title }}</a></li>{% endif %}
    {% endfor %}
        <li class="active">{{ page.title }}</li>
    </ul>
{% endblock %}

{% block page_content %}
{% for person in page.people.all %}
    {# forloop.counter == forloop.counter0 + 1 #}
    {% if forloop.counter0|divisibleby:2 %}<div class="row">{% endif %}
        <div class="col-xs-12 col-md-6{% if forloop.last and forloop.counter0|divisibleby:2 %} col-md-offset-3{% endif %}">
            <h3>{{ person.name }}</h3>
            <p>{% image person.image fill-300x400 %}</p>
            <p>{{ forloop.counter }}</p>
            <p>{{ person.body|richtext }}</p>
        </div>
    {% if forloop.last or forloop.counter|divisibleby:2 %}</div>{% endif %}
{% endfor %}
{% endblock %}

Put people bios onto rows
Put people bios onto rows

touch #162
