{% load staticfiles %}
<ul>
{% for i in analysis.instance_set.all %}
<li>
<a id_instance="{{ i.id }}" href="#{{ i.actual_instance.name }}">{{ i.actual_instance.name }}</a>
<a target="_blank" href="{% url 'OSProject_detail' i.id %}"><img src="{% static "images/i.png" %}"/></a>
</li>
{% empty %}
<li>No projects yet, please add at least one.</li>
{% endfor %}
</ul>
{% for i in analysis.instance_set.all %}
<div id="{{ i.actual_instance.name }}">
<br>
{% for ospf in i.actual_instance.osprojectforge_set.all %}
<!-- <PRE>
instance_id {{ instance_id }}
{{ i.id }} {{ i.name }}
ospf.os_project.instance_id: {{ ospf.os_project.instance_id }}
i.actual_instance.instance_id: {{ i.actual_instance.instance_id }} {{ i.actual_instance.name }}
</PRE>
-->
<a href="{% url 'OSProjectForge_delete' ospf.id analysis.id %}">
<img src="{% static "images/delete.jpg" %}" />
</a>
<a href="{% url 'OSProjectForge_detail' ospf.id %}" target="_blank">
<img src="{% static "images/" %}{{ ospf.forge.id }}.jpg" />
</a>
{{ ospf.name }}
{% endfor %}
</div>
{% endfor %}