{% extends "egonomy_newbase.html" %}
{% load static %}
{% load i18n %}
{% load thumbnail %}
{% load navigation %}

{% block title %}{% trans "All pictures" %}{% endblock %}

{% block css_page %}
<style>
.bar-tools:first-child {
    background-position: bottom center;
}
</style>
{% endblock %}

{% block content %}
            <div class="bar-tools clearfix">
                <h3>
                {% if search %}
                 {% ifequal nb_results 0 %}
                   {% trans "No results for" %} &laquo;&nbsp;{{ search }}&nbsp;&raquo;&nbsp;
                 {% else %}
                   {% trans "Search results for" %} &laquo;&nbsp;{{ search }}&nbsp;&raquo;&nbsp;:
                 {% endifequal %}
                {% else %}
                   {% trans "All pictures" %} 
                {% endif %}
                </h3>
                {% if search %}
                <ul class="clearfix">
                    <li><a href="{% url 'all_pictures' %}" alt="{% trans "All pictures" %}">{% trans "All pictures" %}</a></li>
                </ul>
                {% endif %}
            </div>
            {% if nb_pages > 1 %}{% build_pagination nb_pages cur_page_nb url_pagination "clickable" %}{% endif %}
            <ul class="list-projets-4 clearfix">
              {% for img in results %}
                <li class="subcol-fourth">
                {% include "partial/image_in_list.html" %}
                </li>
              {% endfor %}
            </ul>
            {% if nb_pages > 1 %}<p>{% build_pagination nb_pages cur_page_nb url_pagination "clickable" %}</p>{% endif %}
{% endblock %}

