summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Hostbase/hostbase/webtemplates/host.html
blob: a8fa6a2cdf3a5ccb3e4f9d425da290fccae86674 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{% extends "base.html" %}

{% block pagebanner %}
  <div class="header">
      <h2>{{ host.hostname }}</h2>
  </div>
  <br/>
{% endblock %}

{% block sidebar %}
{% include "navbar" %}
<ul class="sidebar">
   <li><a href="dns/" class="sidebar">detailed dns info</a></li>
   <li><a href="edit/" class="sidebar">edit host info</a></li>
   <li><a href="dns/edit/" class="sidebar">edit dns info</a></li>
   <li><a href="logs/" class="sidebar">change logs</a></li>
</ul>
{% include "logout" %}
{% endblock %}

{% block content %}

<table border="0" width="100%">
   <colgroup>
   <col width="150">
   <col width="*">
   <tr> <td> <b>hostname</b></td>
   <td> {{ host.hostname }}</td></tr>			 
   <tr> <td> <b>whatami</b></td>
   <td> {{ host.whatami }}</td></tr>
   <tr> <td> <b>netgroup</b></td>
   <td> {{ host.netgroup }}</td></tr>
   <tr> <td> <b>class</b></td>
   <td> {{ host.security_class }}</td></tr>
   <tr> <td> <b>support</b></td>
   <td> {{ host.support }}</td></tr>
   <tr> <td> <b>csi</b></td>
   <td> {{ host.csi }}</td></tr>
   <tr> <td> <b>printq</b></td>
   <td> {{ host.printq }}</td></tr>
   <tr> <td> <b>outbound_smtp</b></td>
   {% if host.outbound_smtp %}
   <td> y </td></tr>
   {% else %}
   <td> n </td></tr>
   {% endif %}
   <tr> <td> <b>primary_user</b></td>
   <td> {{ host.primary_user }}</td></tr>
   <tr> <td> <b>administrator</b></td>
   <td> {{ host.administrator }}</td></tr>
   <tr> <td> <b>location</b></td>
   <td> {{ host.location }}</td></tr>
   <tr> <td> <b>expiration_date</b></td>
   <td> {{ host.expiration_date }}</td></tr>
   {% for interface in interfaces %}
   <tr> <td><br><b>Interface</b></td>
   {% ifnotequal interface.0.hdwr_type 'no' %}
   <td><br>{{ interface.0.hdwr_type }}</td></tr>
   {% endifnotequal %}
   {% if interface.0.dhcp %}
   <tr> <td> <b>mac_addr</b></td>
   <td> {{ interface.0.mac_addr }}</b></td></tr>
   {% endif %}
   {% for ip in interface.1 %}
   <tr> <td> <b>ip_addr</b></td>
   <td> {{ ip.ip_addr }}</td></tr>
   {% endfor %}
   {% endfor %}
   <tr> <td valign="top"> <b>comments</b></td>
   <td> 
   {{ host.comments|linebreaksbr }}<br>
   </td></tr>

</table>
<a style="font-size:75%" href="/hostbase/{{ host.id }}/dns/">see detailed DNS information for this host</a>
<br><br>
this host is {{ host.status }}<br>
last update on {{ host.last }}<br>

{% endblock %}