aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/photos/templates/photos/gallery_list.html
blob: 61225c48abf13460d3a4f1e900653beafacb8a30 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{% extends "photos/base.html" %}
{# {% load markup %} #}

{% block path %}photos{% endblock %}
{% block title %}Photo Galleries{% endblock %}

{% block content %}
{% if object_list %}
<div id="thumbnail-box">
  <div id="thumbnails">
    {% for item in object_list %}
    <div class="lefty">
       &nbsp; &nbsp;&nbsp;
      <a href="{{ item.id }}/">
        {% if item.first %}
        <img src="{{ item.first.thumburl }}"
             alt="{{ item.first.title }}" />
        {% else %}
        No photo available
        {% endif %}
      </a>
    </div>
      <br /> <br /><a href="{{ item.id }}/"><h3>  &nbsp;&nbsp;{{ item.title }}</h3></a>
      <br /> <br /> <br /> <br />
    {% endfor %}
  </div>
</div>
{% else %}
<p>No galleries have been set up yet.</p>
{% endif %}


{% if is_paginated %}

{% if has_previous %}
<a href="./?page={{ previous }}">&laquo; previous</a> |
{% endif %}
{% if has_next %}
<a href="./?page={{ next }}">next &raquo;</a>
{% endif %}
{% endif %}

<!--
{% if not user.is_anonymous %}
<p>
  <a href="{{admin_url}}/photos/gallery/add/">Create a new gallery.</a>
</p>
{% else %}
<p>
  <a href="/accounts/login/?next={{ request.path }}">
    Login</a> to create a new gallery.
</p>
{% endif %}
-->

{% endblock %}