{% load i18n %}
{% load thumbnail %}
{% load front_tags %}
{% load static %}
{% load taggit_extras_ldt %}

<ul class="prev_next_cont_proj" >
    <li id="content_tags_li"><span id="content_tags" class="clickable">{% if tag_cloud|length > 0 %}{% trans 'All categories' %}{% endif %}</span>{% if current_content_tag %}{% if current_content_tag != "" %} &gt; {{current_content_tag}} <span id="no_content_tag" class="clickable">[x]</span>{% endif %}{% endif %}</li>
{% if nb_ct_pages %}
    <li>{% load navigation %}{% build_pagination nb_ct_pages current_content_page "contents_page clickable" %}</li>
	<input type="hidden" value="{{current_content_page}}" name="current_content_page" id="current_content_page">
{% endif %}
</ul>
<div id="content_tags_cloud">{% get_tagcloud as tag_cloud for 'ldt_utils.Content' %}{% if tag_cloud|length > 0 %}
  <p>
  {% for t in tag_cloud %}
    <a class="contents_tag clickable" alt="{{t.name}}"><span style="font-size:{{t.weight|floatformat:0|add:'9'}}px;">{{t.name}}</span></a>{% if not forloop.last %}, {% endif %}
  {% endfor %}
  </p>{% endif %}
  <input type="hidden" value="{{current_content_tag}}" name="current_content_tag" id="current_content_tag">
</div>
<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='{% static "ldt/img/page_add.png" %}' title="{% trans 'create project' %}" alt="{% trans 'create project' %}" href="{% url 'ldt.ldt_utils.views.project.create_project' iri_id=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='{% static "ldt/img/control_play.png" %}' href="{% url 'ldt.ldt_utils.views.lignesdetemps.index'  url=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>

