blob: 7d4513d94bbffefce904abb1397ebd94b0c4b390 (
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
|
{% extends "photologue/root.html" %}
{% block title %}Últimas fotos{% endblock %}
{% block page-header %}Últimas fotos{% endblock %}
{% block content %}
{% if latest %}
{% for gallery in latest %}
<div class="photo-gallery">
<h2><a href="{{ gallery.get_absolute_url }}">{{ gallery.title }}</a></h2>
{% for photo in gallery.sample|slice:sample_size %}
<div class="gallery-photo">
<a href="{{ photo.get_absolute_url }}"><img src="{{ photo.get_thumbnail_url }}" alt="{{ photo.title }}"/></a>
</div>
{% endfor %}
</div>
{% endfor %}
{% else %}
<p>No galleries were found.</p>
{% endif %}
<div class="btn-toolbar"><a class="btn" href="{% url pl-gallery-list 1 %}">View all galleries.</a></div>
{% endblock %}
|