{% load front_tags %}

{% if nb_pages %}
	<p class="prev_next_cont_proj" >{% comment %}
	alors ? : {{begin}} - {{middle}} - {{end}} - nb_pages = {{nb_pages}}<br/>
	alors ? : nb_pages = {{nb_pages}} - range = {{nb_pages|get_range}} - cur_page_nb = {{cur_page_nb}}<br/>{% endcomment %}
	{% if 0 < cur_page_nb %}<a class="{{a_class}}" alt="prev">&lt;&lt;</a>&nbsp;{% endif %}
	{% for i in begin %}
	  {% if i == cur_page_nb %}
        {{i|add:'1'}}
      {% else %}
        <a class="{{a_class}}" alt="{{i}}">{{i|add:'1'}}</a>
      {% endif %}
      &nbsp;
	{% endfor %}
	{% if middle %}
	...&nbsp;
	{% for i in middle %}
	  {% if i == cur_page_nb %}
	    {{i|add:'1'}}
	  {% else %}
	    <a class="{{a_class}}" alt="{{i}}">{{i|add:'1'}}</a>
	  {% endif %}
	  &nbsp;
	{% endfor %}
	{% endif %}
	{% if end %}
    ...&nbsp;
    {% for i in end %}
      {% if i == cur_page_nb %}
        {{i|add:'1'}}
      {% else %}
        <a class="{{a_class}}" alt="{{i}}">{{i|add:'1'}}</a>
      {% endif %}
      &nbsp;
    {% endfor %}
    {% endif %}
	{% if cur_page_nb|add:'1' < nb_pages %}<a class="{{a_class}}" alt="next">&gt;&gt;</a>{% endif %}
	</p>
{% endif %}


