Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / helpdesk / templates / helpdesk / ip.html @ bbea0414

History | View | Annotate | Download (1.1 kB)

1
{% extends "helpdesk/base.html" %}
2

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

    
7
{% block content %}
8

    
9
{% if ip_exists %}
10
<table border >
11
  <tr>
12
    IP Address {{ search_query }}
13
  </tr>
14
  <tr>
15
          <td> Server  </td>
16
          <td> Network  </td>
17
          <td> Allocated  </td>
18
          <td> Released  </td>
19
          <td> Account  </td>
20
  </tr>
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
</table>
43
{% else %}
44

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