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

{% block title %}{% trans "All fragments" %}{% 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 %}
                {% elif user_fragments %}
                   {% trans "Fragments created by" %} : {{ username }}
                {% else %}
                   {% trans "All fragments" %}
                {% endif %}
                </h3>
                {% if search or user_fragments %}
                <ul class="clearfix">
                    <li><a href="{% url 'all_fragments' %}" alt="{% trans "All fragments" %}">{% trans "All fragments" %}</a></li>
                </ul>
                {% endif %}
            </div>
            {% if nb_pages > 1 %}{% build_pagination nb_pages cur_page_nb url_pagination "" %}{% endif %}
            <ul class="list-projets-4 clearfix">
              {% for frg in results %}
                <li class="subcol-fourth">
                {% include "partial/fragment_in_list.html" %}
                </li>
              {% endfor %}
            </ul>
            {% if nb_pages > 1 %}<p>{% build_pagination nb_pages cur_page_nb url_pagination "clickable" %}</p>{% endif %}
{% endblock %}
