{% load i18n %}
<div class="projectscontentsheader span-12 last" id="projectsheader">
{% trans "name" %}
</div>
<div class="span-12 last projectscontentstablewrapperdiv">
<div class="span-12 last projectscontentstablediv" id="projectstablediv">
<table class="projectscontentstable">
    <tbody class="projectscontentsbody">
{% for project in projects %}
    <tr class="imageline {% cycle 'projectscontentsoddline' 'projectscontentsevenline'%}" >
        {% url ldt.ldt_utils.views.project_json_id project.ldt_id as json_url_id %}
        <td class="cellimg"><div class="cellimgdiv"><img src="{{LDT_MEDIA_PREFIX}}img/document_edit.gif" href="{% url ldt.ldt_utils.views.indexProject project.ldt_id %}" class="ldt_link" alt="{% trans 'open ldt' %}" title="{% trans 'open ldt' %}"/></div></td>
        <td class="cellimg"><div class="cellimgdiv"><img src="{{LDT_MEDIA_PREFIX}}img/documents_duplicate.gif" href="{% url ldt.ldt_utils.views.copy_project project.ldt_id %}" class="ldt_link_create" alt="{% trans 'copy project' %}" title="{% trans 'copy project' %}"/></div></td>
        <td class="cellimg"><div class="cellimgdiv"><img src="{{LDT_MEDIA_PREFIX}}img/plugin.gif" href="{{WEB_URL}}{{json_url_id}}" id="player_project_{{project.ldt_id}}" class="ldt_link_embed" alt="{% trans 'link json by id' %}" title="{% trans 'link json by id' %}"/></div></td>
        <td class="cellimg">
        {% ifequal project.state 2 %}
        <img src="{{BASE_URL}}static/admin/img/admin/icon-yes.gif" alt="{% trans 'Project published, click to unpublish' %}" title="{% trans 'Project published, click to unpublish' %}" class="publishedproject" id="project_{{project.ldt_id}}" />
        {% else %}
        <img src="{{BASE_URL}}static/admin/img/admin/icon-no.gif" alt="{% trans 'Project not published, click to publish' %}" title="{% trans 'Project not published, click to publish' %}" class="unpublishedproject" id="project_{{project.ldt_id}}" />
        {% endifequal %}
        </td>
        <td class="projecttitle">
        {% ifequal project.state 2 %}
        {{ project.title }}
        {% else %}
        <a class="projecttitlelink" href="{% url ldt.ldt_utils.views.update_project ldt_id=project.ldt_id %}">{{ project.title }}</a>
        {% endifequal %}
        </td>
    </tr>
{% endfor %}
    </tbody>
</table>
</div>
</div>
<div class="projectscontentsfooter span-12 last">
+&nbsp;<a class='ldt_link_create' href="{% url ldt.ldt_utils.views.create_ldt_view %}" >{% trans "Create project" %}</a>
</div>
