{% 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' as color_cycle%} update_group_projects" id="{{ group.id }}">
		
		{% 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"></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 %}
	
	{% if not user.is_superuser and not search_active %}
	<tr class="imageline {% cycle color_cycle %} update_group_projects" id="-1">  
			<td class="cellimg"></td>
			<td>{% trans "Projects shared with me only" %}</td>
			
			<td class="align_right"><img src="{{LDT_MEDIA_PREFIX}}/img/control_play.png" class="next_icon"/></td>	
	</tr>
	{% endif %}
	
	</tbody>
</table>