blob: 92d1188494a2430d4e93d16858f93c1628c1a0e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
{%load i18n%}
<table id="floating_ips" class="wide">
<tr>
<th>IP</th>
<th>Instance</th>
<th>Actions</th>
</tr>
{% for ip in floating_ips %}
<tr class="{% cycle 'odd' 'even' %}">
<td>{{ ip.ip }}</td>
<td>
{% if ip.fixed_ip %}
<ul>
<li><span>{%trans "Instance ID:"%}</span> {{ip.instance_id}}</li>
<li><span>{%trans "Fixed IP:"%}</span> {{ip.fixed_ip}}</li>
</ul>
{% else %}
None
{% endif %}
</td>
<td id="actions">
<ul>
<li class="form">{% include "nova/floating_ips/_release.html" with form=release_form %}</li>
{% if ip.fixed_ip %}
<li class="form">{% include "nova/floating_ips/_disassociate.html" with form=disassociate_form %}</li>
{% else %}
<li class="form"><a href="{% url horizon:nova:floating_ips:associate ip.id %}">{%trans "Associate to instance"%}</a></li>
{% endif %}
</ul>
</td>
</tr>
{% endfor %}
</table>
|