{% load lookup %}
<div>
{% for project in user_active_projects %}
	<div class="mainpage-project__cell"><table>
	 <tr>
	 	<td style="padding-bottom: 5px;">
		 	{% if sla|lookup:project|lookup:"resolution" == "red" %}
		 		<a class="no-link-deco mainpage-project__sla-label" href="/regress/{{ project }}" title="{{ sla|lookup:project|lookup:'failed_components' }}">
		 			<i class="fa fa-circle text-danger mainpage-project__bulb" aria-hidden="true"></i>
		 			&ensp;
		 		</a>
		 	{% elif sla|lookup:project|lookup:"resolution" == "green" %}
	 			<a class="no-link-deco mainpage-project__sla-label" href="/regress/{{ project }}">
		 			<i class="fa fa-circle text-success mainpage-project__bulb" aria-hidden="true"></i>
		 			&ensp;
	 			</a>
		 	{% endif %}
	 	</td>
	 	<td>
	 		<a style="margin-bottom:-3px;" href="/{{ project }}">{{ project }}</a>
	 	</td>
	 </tr>
	 </table></div>
{% endfor %}
</div>
<div>
{% for project in user_old_projects %}
	 <div class="mainpage-project__cell">
		<a class="mainpage-project__old" href="/{{ project }}">{{ project }}</a>
	 </div>
{% endfor %}
</div>
