Source

Ochs / templates / staff / profile.html

Full commit
{% extends "base.html" %}
{% block mainblock %}
        <div class="container">
            <div class="span-20">
                <div class="span-7">
                    {% if profile.photo %}
                    <img class="hdsht" src="{{ profile.photo.url }}" alt="{{ profile.first_name }} {{ profile.last_name }}" />
                    {% else %}
                    
                    {% endif %}
                </div>
                <div class="span-12 botoutline">
                    <span class="categories">Biography</span>
                </div>
                <div class="span-12 append-1 last toppad">
                    <p>
                        <span class="smallcaps">{{ profile.first_name }} {{ profile.last_name }}</span> 
                        {{ profile.bio|safe }}
                    </p>
                    <p>
                        {{ profile.email }}
                    </p>
                </div>
                {% for group in groups %}
                    <div class="span-19 append-1 last botoutline toppad">
                        <span class="categories">{{ group.0 }}</span>
                    </div>
                    {% for byline in group.1 %}
                        {% with byline.content_object as story %}
                        <div class="span-9 append-1 toppad{% if not forloop.counter|divisibleby:"2" %} last{% endif %}">
                            <p>
                                {{ story.publish_date|date:"F n Y"}}<br />
                                <a href="{{ story.get_absolute_url }}">{{ story.headline }}</a>
                            </p>
                        </div>
                        {% endwith %}
                    {% endfor %}
                {% endfor %}
            </div>
            <div class="span-4 last">
                <div class="span-4 last botoutline">
                    <span class="categories">Photography</span>
                </div>
                <div class="span-4 last centerimg">
                    <img class="thumbphoto" src="sadpanda.jpg" alt="A sad panda.">
                </div>
                <div class="span-4 last centerimg">
                    <img class="thumbphoto" src="sadpanda.jpg" alt="A sad panda.">
                </div>
                <div class="span-4 last centerimg">
                    <img class="thumbphoto" src="sadpanda.jpg" alt="A sad panda.">
                </div>
                <div class="span-4 last centerimg">
                    <img class="thumbphoto" src="sadpanda.jpg" alt="A sad panda.">
                </div>
                <div class="span-4 last centerimg">
                    <img class="thumbphoto" src="sadpanda.jpg" alt="A sad panda.">
                </div>
                <div class="span-4 last centerimg">
                    <img class="thumbphoto" src="sadpanda.jpg" alt="A sad panda.">
                </div>
            </div>
        </div>
{% endblock %}