{% load i18n %}
{% load thumbnail %}
{% load front_tags %}

{% if nb_ct_pages %}
	<p class="prev_next_cont_proj" >
	{% if 0 < current_content_page %}<a class="contents_page clickable" alt="prev">&lt;&lt;</a>&nbsp;&nbsp;{% endif %}
	{% for i in nb_ct_pages|get_range %}
	  {% if i == current_content_page %}
	    {{i|add:'1'}}
	  {% else %}
	    <a class="contents_page clickable" alt="{{i}}">{{i|add:'1'}}</a>
	  {% endif %}
	  &nbsp;&nbsp;
	{% endfor %}
	{% if current_content_page|add:'1' < nb_ct_pages %}<a class="contents_page clickable" alt="next">&gt;&gt;</a>{% endif %}
    <input type="hidden" value="{{current_content_page}}" name="current_content_page" id="current_content_page">
	</p>
{% endif %}
<div class="projectscontentsheader projectcontentsheadertitle span-12 last" id="contentsheader">
{% trans "name" %}
</div>
<div class="span-12 last projectscontentstablediv" id="contentstablediv">
	<table class="projectscontentstable">
	    <tbody class="projectscontentsbody">
	{% for content in contents %}
		<tr class="imageline {% cycle 'projectscontentsoddline' 'projectscontentsevenline'%}">
		  <td class="cellimg"><div class="cellimgdiv"><img src="{{LDT_MEDIA_PREFIX}}/img/page_add.png" title="{% trans 'create project' %}" alt="{% trans 'create project' %}" href="{% url ldt.ldt_utils.views.project.create_project content.iri_id %}" class="ldt_link_create_project"/></div></td>
		  <td class="cellimg"><div class="cellimgdiv"><img  alt="{% trans 'preview media'%}" title="{% trans 'preview media'%}" src="{{LDT_MEDIA_PREFIX}}/img/control_play.png" href="{% url ldt.ldt_utils.views.lignesdetemps.index content.iri_id %}" class="ldt_link_open_ldt"/></div></td>
		  <td>{% thumbnail content.image "50x50" format="PNG" crop="top" as im %}<img src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}">{% endthumbnail %}</td>
		  <td class="contenttitle"><a {% if content.change %} class="contenttitlelink infostooltip" href="{% url ldt.ldt_utils.views.content.write_content iri_id=content.iri_id %}" data-title="{{ content.title}}"  data-desc="{{ content.description }}" {% else %} class="contenttitlelink qtiplink" title="{% trans "You can't edit this content" %}" {% endif %}>{{ content.title|default:"_" }}</a></td>
		</tr>
	{% endfor %}
		</tbody>
	</table>
</div>

