information.html.in 3.62 KB
Newer Older
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 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152
#!{{ extra_eggs_interpreter }}

print """<html>
<head>
 <title>Computer Partition</title>
 <link rel="stylesheet" href="pure-min.css">
 <link rel="stylesheet" href="style.css">
 <style>
.mo-table {
	margin:0px;padding:0px;
	width:100%;
	border:1px solid #ffffff;
	
	-moz-border-radius-bottomleft:0px;
	-webkit-border-bottom-left-radius:0px;
	border-bottom-left-radius:0px;
	
	-moz-border-radius-bottomright:0px;
	-webkit-border-bottom-right-radius:0px;
	border-bottom-right-radius:0px;
	
	-moz-border-radius-topright:0px;
	-webkit-border-top-right-radius:0px;
	border-top-right-radius:0px;
	
	-moz-border-radius-topleft:0px;
	-webkit-border-top-left-radius:0px;
	border-top-left-radius:0px;
}.mo-table table{
    border-collapse: collapse;
        border-spacing: 0;
	width:100%;
	margin:0px;padding:0px;
}.mo-table tr:last-child td:last-child {
	-moz-border-radius-bottomright:0px;
	-webkit-border-bottom-right-radius:0px;
	border-bottom-right-radius:0px;
}
.mo-table table tr:first-child td:first-child {
	-moz-border-radius-topleft:0px;
	-webkit-border-top-left-radius:0px;
	border-top-left-radius:0px;
}
.mo-table table tr:first-child td:last-child {
	-moz-border-radius-topright:0px;
	-webkit-border-top-right-radius:0px;
	border-top-right-radius:0px;
}.mo-table tr:last-child td:first-child{
	-moz-border-radius-bottomleft:0px;
	-webkit-border-bottom-left-radius:0px;
	border-bottom-left-radius:0px;
}.mo-table tr:hover td{
	background-color:#EEF1F4;
		

}
.mo-table td.upper{text-transform: uppercase;}
.mo-table td{
	vertical-align:middle;
	
	background-color:#e8eaed;
  min-width: 190px;
	border:1px solid #ffffff;
	border-width:0px 1px 1px 0px;
	text-align:left;
	padding:12px;
	font-size:13px;
	font-family:Helvetica;
	font-weight:normal;
	color:#575757;
}.mo-table tr:last-child td{
	border-width:0px 1px 0px 0px;
}.mo-table tr td:last-child{
	border-width:0px 0px 1px 0px;
}.mo-table tr:last-child td:last-child{
	border-width:0px 0px 0px 0px;
}
.mo-table tr:first-child td{
	background-color:#3799fc;
	border:0px solid #ffffff;
	text-align:left;
	border-width:0px 0px 1px 1px;
	font-size:16px;
	font-family:Helvetica;
	font-weight:normal;
	color:#ffffff;
}
.mo-table tr:first-child td:first-child{
	border-width:0px 0px 1px 0px;
}
.mo-table tr:first-child td:last-child{
	border-width:0px 0px 1px 1px;
}
 </style>
</head>
<body>
<h1>Computer Partition Parameters</h1>

<div class="mo-table" >
  <table >
    <tr>
      <td colspan=2>
          Computer Partition information
      </td>
    </tr>
    <tr>
      <td class="upper" > Partition IPv4 </td>
      <td> {{ ipv4 }} </td>
    </tr>
    <tr>
      <td class="upper"> Partition IPv6 </td>
      <td> {{ ipv6 }} </td>
    </tr>
    <!--<tr>
      <td class="upper" > Instance Reference </td>
      <td> {{ instance_reference }} </td>
    </tr>-->
    <tr>
      <td class="upper" > Software Release Url </td>
      <td> <a href="{{ software_url }}" target='_blank'>{{ software_url }}</a> </td>
    </tr>
    <tr>
      <td class="upper" > Partition Home directory </td>
      <td> {{ home }} </td>
    </tr>
    <tr>
      <td class="upper" > Partition Reference </td>
      <td> {{ partition_id }} </td>
    </tr>
    <tr>
      <td class="upper" > Computer Reference </td>
      <td> {{ computer_id }} </td>
    </tr>
    <tr>
      <td class="upper" > Master Server Url </td>
      <td> {{ master_url }} </td>
    </tr>
{% for key, parameter in extra_parameters.items() -%}
    <tr>
      <td class="upper" > {{ key }} </td>
      <td> {{ parameter }} </td>
    </tr>
{% endfor -%}
    <tr>
      <td class="upper" > Instance Parameters </td>
      <td> {{ slapparameter_dict }} </td>
    </tr>
  </table>
</div>
</body>
</html>
"""