aboutsummaryrefslogtreecommitdiffstats
path: root/photowall/templates/index.html
blob: 9abd15be7cb1e8167bb5dd404f0b5ec084b7ccb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{% extends "base.html" %}
{% block content_title %}{% endblock %}
{% block content %}
{% if articles %}

    <aside id="featured" class="body">

    {% for article in articles_page.object_list %}

	<div style="float:left">
		<a href="{{ SITEURL }}/{{ article.url }}">
		<img src="images/{{ article.thumbnail }}" class="bw" id="ima{{ loop.index }}" onmouseover="greyoff(this.id)" onmouseleave="greyon(this.id)" border="0" title="{{article.title}}" alt="{{ article.title }}" /></a>
	</div>
        {% if loop.last %}
            {% if loop.length > 1 %}
                </ol><!-- /#posts-list -->
            {% endif %}
            {% if articles_page.has_previous() or loop.length > 1 %}
                <div style="clear:both"></div>{% include 'pagination.html' %}
            {% endif %}
            {% if loop.length > 1 %}
                </section><!-- /#content -->
            {% endif %}
        {% endif %}
    {% endfor %}
    </aside><!-- /#featured -->
{% else %}
<section id="content" class="body">
<h2>Pages</h2>
    {% for page in PAGES %}
        <li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li>
    {% endfor %}
</section>
{% endif %}
{% endblock content %}