{% load i18n %}

<div class="projectscontentsheader projectcontentsheadertitle span-12 last" id="contentsheader">
{% trans "Click on the line to see the group's projects" %}
</div>

<input type='hidden' name='id_group' id='id_group' value='' />
<table class="projectscontentstable">
    <tbody class="projectscontentsbody">
	{% for group in groups %}
	<tr class="imageline {% cycle 'projectscontentsoddline' 'projectscontentsevenline'%} update_group_projects" id="{{ group.id }}">

		{% if user.is_regular %}
			{% if group.change %}
			   <td class="cellimg"><a class="grouplink create_group" title="{% trans "Change this group"%}" href="{% url ldt.ldt_utils.views.update_group group.id %}">c</a></td>
			   <td><b>{{ group.name }}</b></td>
			{% else %}
			    <td class="cellimg"><a class="grouplink leave_group" title="{% trans "Leave this group" %}" href="{% url ldt.ldt_utils.views.leave_group group.id %}">l</a></td>
			    <td>{{ group.name }}</td>
			{% endif %}
		{% else %}
			<td class="cellimg"></td>
			<td>{{ group.name }}</td>
		{% endif %}
		
		<td class="align_right"><img src="{{LDT_MEDIA_PREFIX}}/img/control_play.png" class="next_icon"/></td>
		
		</tr>
	{% endfor %}
	</tbody>
</table>