{% if nb_pages %}
    {% comment %}alors ? : {{begin}} - {{middle}} - {{end}} - nb_pages = {{nb_pages}}<br/>
    alors ? : nb_pages = {{nb_pages}} - range = {{nb_pages}} - cur_page_nb = {{cur_page_nb}}<br/>{% endcomment %}
    <ul class="pagination clearfix">
    {% if 1 < cur_page_nb %}<li><a class="{{a_class}}" alt="prev" href="{{ url_pagination }}&page={{cur_page_nb|add:'-1'}}">&lt;</a></li>{% endif %}
    {% for i in begin %}
      {% if i == cur_page_nb %}<li class="curent">{{i}}</li>{% else %}<li><a class="{{a_class}}" alt="{{i}}" href="{{ url_pagination }}&page={{i}}">{{i}}</a></li>{% endif %}
    {% endfor %}
    {% if middle %}
    <li>...</li>
    {% for i in middle %}
      {% if i == cur_page_nb %}<li class="curent">{{i}}</li>{% else %}<li><a class="{{a_class}}" alt="{{i}}" href="{{ url_pagination }}&page={{i}}">{{i}}</a></li>{% endif %}
    {% endfor %}
    {% endif %}
    {% if end %}
    <li>...</li>
    {% for i in end %}
      {% if i == cur_page_nb %}<li class="curent">{{i}}</li>{% else %}<li><a class="{{a_class}}" alt="{{i}}" href="{{ url_pagination }}&page={{i}}">{{i}}</a></li>{% endif %}
    {% endfor %}
    {% endif %}
    {% if cur_page_nb < nb_pages %}<li><a class="{{a_class}}" alt="next" href="{{ url_pagination }}&page={{cur_page_nb|add:'1'}}">&gt;</a>{% endif %}
    </ul>
{% endif %}