|
a |
|
b/OSSEval/OSProject/templates/OSProject/detail.html |
|
|
1 |
{% load staticfiles %}
|
|
|
2 |
<ul>
|
|
|
3 |
{% for i in analysis.instance_set.all %}
|
|
|
4 |
<li>
|
|
|
5 |
<a id_instance="{{ i.id }}" href="#{{ i.actual_instance.name }}">{{ i.actual_instance.name }}</a>
|
|
|
6 |
<a target="_blank" href="{% url 'OSProject_detail' i.id %}"><img src="{% static "images/i.png" %}"/></a>
|
|
|
7 |
</li>
|
|
|
8 |
{% empty %}
|
|
|
9 |
<li>No projects yet, please add at least one.</li>
|
|
|
10 |
{% endfor %}
|
|
|
11 |
</ul>
|
|
|
12 |
{% for i in analysis.instance_set.all %}
|
|
|
13 |
<div id="{{ i.actual_instance.name }}">
|
|
|
14 |
<br>
|
|
|
15 |
{% for ospf in i.actual_instance.osprojectforge_set.all %}
|
|
|
16 |
<!-- <PRE>
|
|
|
17 |
instance_id {{ instance_id }}
|
|
|
18 |
{{ i.id }} {{ i.name }}
|
|
|
19 |
ospf.os_project.instance_id: {{ ospf.os_project.instance_id }}
|
|
|
20 |
i.actual_instance.instance_id: {{ i.actual_instance.instance_id }} {{ i.actual_instance.name }}
|
|
|
21 |
</PRE>
|
|
|
22 |
-->
|
|
|
23 |
<a href="{% url 'OSProjectForge_delete' ospf.id analysis.id %}">
|
|
|
24 |
<img src="{% static "images/delete.jpg" %}" />
|
|
|
25 |
</a>
|
|
|
26 |
<a href="{% url 'OSProjectForge_detail' ospf.id %}" target="_blank">
|
|
|
27 |
<img src="{% static "images/" %}{{ ospf.forge.id }}.jpg" />
|
|
|
28 |
</a>
|
|
|
29 |
{{ ospf.name }}
|
|
|
30 |
{% endfor %}
|
|
|
31 |
</div>
|
|
|
32 |
{% endfor %}
|