Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / admin-interface / templates / admin-interface / ip.html @ c204fcff

History | View | Annotate | Download (1.3 kB)

1
{% extends "admin-interface/base.html" %}
2

    
3
{% block extraheader %}
4
<small>/ {{ search_query }}</small>
5
{% endblock %}
6

    
7
{% block content %}
8
{% if ip_exists %}
9
<h3>IP Address {{ search_query }}</h3>
10
<table class="table table-striped table-sorted table-ip">
11
<thead>
12
  <tr>
13
          <th><span> Server</span></th>
14
          <th><span> Network </span></th>
15
          <th><span> Allocated </span></th>
16
          <th><span> Released </span></th>
17
          <th><span> Account  </span></th>
18
  </tr>
19
</thead>
20
<tbody>
21
{% for ip in ips %}
22
  <tr>
23
          <td>
24
              {% if ip.released_at %}
25
                Server {{ ip.server_id }}
26
              {% else %}
27
              <a href="vm-{{ ip.server_id }}">Server {{ ip.server_id }}</a>
28
              {% endif %}
29
          </td>
30
          <td> Network {{ ip.network_id }} </td>
31
          <td> {{ ip.allocated_at|date:"r" }} </td>
32
          <td>
33
               {% if ip.released_at %}
34
                  {{ ip.released_at|date:"r" }}
35
               {% else %}
36
                  -
37
               {% endif %}
38
          </td>
39
          <td><a href="{{ ip.account }}">{{ ip.account }}</a></td>
40
  </tr>
41
{% endfor %}
42
</tbody>
43
</table>
44
{% else %}
45

    
46
<p> IP Address <em>{{ search_query }}</em> has never been allocated to any server. </p>
47
{% endif %}
48
{% endblock %}