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

{% if nb_ct_pages %}
    {% load navigation %}{% build_pagination nb_ct_pages current_content_page "contents_page clickable" %}
	<input type="hidden" value="{{current_content_page}}" name="current_content_page" id="current_content_page">
{% 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>

