]> git.ipfire.org Git - ipfire.org.git/blob - templates/stasy-profile-detail.html
Remove obsolete pakfire CGI scripts.
[ipfire.org.git] / templates / stasy-profile-detail.html
1 {% extends "stasy-base-1.html" %}
2
3 {% block title %}{{ _("Profile") }} {{ profile.public_id }}{% end block %}
4
5 {% block body %}
6 <div class="page-header">
7 <h1>{{ _("Profile") }} {{ profile.public_id }}</h1>
8 </div>
9
10 <div class="row">
11 <div class="span6">
12 <h3>{{ _("Operating system") }}</h3>
13 <table class="table">
14 <tr>
15 <td>
16 {{ _("Version") }}
17 </td>
18 <td>
19 {{ profile.release }}
20 </td>
21 </tr>
22 <tr>
23 <td>
24 {{ _("Architecture") }}
25 </td>
26 <td>
27 {{ profile.cpu.arch }}
28 </td>
29 </tr>
30 <tr>
31 <td>
32 {{ _("Kernel version") }}
33 </td>
34 <td>
35 {{ profile.kernel }}
36 </td>
37 </tr>
38 </table>
39 </div>
40
41 <div class="span6">
42 {% if profile.hypervisor %}
43 <h3>{{ _("Hypervisor") }}</h3>
44 <p>
45 {{ _("This machine is running in a virtual environment.") }}
46 </p>
47
48 <table class="table">
49 <tr>
50 <td>
51 {{ _("Vendor") }}
52 </td>
53 <td>
54 {{ profile.hypervisor.vendor }}
55 </td>
56 </tr>
57 <tr>
58 <td>
59 {{ _("Type") }}
60 </td>
61 <td>
62 {{ profile.hypervisor.type }}
63 </td>
64 </tr>
65 </table>
66 {% else %}
67 <h3>{{ _("Hardware vendor") }}</h3>
68 <table class="table">
69 <tr>
70 <td>
71 {{ _("Vendor") }}
72 </td>
73 <td>
74 {{ profile.vendor or _("Unknown") }}
75 </td>
76 </tr>
77 <tr>
78 <td>
79 {{ _("Model") }}
80 </td>
81 <td>
82 {{ profile.model or _("Unknown") }}
83 </td>
84 </tr>
85 </table>
86 {% end %}
87 </div>
88 </div>
89
90 <hr>
91
92 {% if profile.network %}
93 <div class="row">
94 <div class="span12">
95 <h2>{{ _("Network") }}</h2>
96 <p>
97 {{ _("Enabled network zones") }}
98
99 {% for zone in ("GREEN", "RED", "BLUE", "ORANGE") %}
100 {% if profile.network.has_zone(zone.lower()) %}
101 {% if zone == "GREEN" %}
102 <span class="label label-success">{{ _(zone) }}</span>
103 {% elif zone == "RED" %}
104 <span class="label label-important">{{ _(zone) }}</span>
105 {% elif zone == "ORANGE" %}
106 <span class="label label-warning">{{ _(zone) }}</span>
107 {% elif zone == "BLUE" %}
108 <span class="label label-info">{{ _(zone) }}</span>
109 {% end %}
110 {% end %}
111 {% end %}
112 </p>
113 </div>
114 </div>
115 {% end %}
116
117 <hr>
118
119 <h2>{{ _("Hardware") }}</h2>
120 <div class="row">
121 <div class="span6">
122 <table class="table">
123 <tr>
124 <td colspan="2">
125 <strong>{{ _("CPU") }}</strong>
126 </td>
127 </tr>
128 <tr>
129 <td>
130 {{ _("Vendor") }}
131 </td>
132 <td>
133 <a href="/stats/cpus">{{ profile.cpu.vendor }}</a>
134 </td>
135 </tr>
136 <tr>
137 <td>
138 {{ _("Model") }}
139 </td>
140 <td>
141 {{ profile.cpu.model_string or _("Not available") }}
142 </td>
143 </tr>
144 <tr>
145 <td>
146 {{ _("Cores") }}
147 </td>
148 <td>
149 {{ profile.cpu.count }}
150 </td>
151 </tr>
152 <tr>
153 <td>
154 {{ _("Speed") }}
155 </td>
156 <td>
157 {{ profile.cpu.speed }} MHz
158 {% if profile.cpu.speed != profile.cpu.bogomips %}
159 (Bogomips: {{ profile.cpu.bogomips }})
160 {% end %}
161 </td>
162 </tr>
163 {% if profile.cpu.vendor != "ARM" %}
164 <tr>
165 <td>
166 {{ _("Supported features") }}
167 </td>
168 <td>
169 {% if profile.cpu.capable_64bit %}
170 <span class="label label-success">{{ _("64 bit capable") }}</span>
171 {% end %}
172
173 {% if profile.cpu.capable_pae %}
174 <span class="label label-success">{{ _("PAE capable") }}</span>
175 {% end %}
176
177 {% if profile.cpu.capable_virt %}
178 <span class="label label-success">{{ _("VT-x/AMD-V") }}</span>
179 {% end %}
180 </td>
181 </tr>
182 {% end %}
183 </table>
184 </div>
185
186 <div class="span6">
187 <table class="table">
188 <tr>
189 <td>
190 {{ _("Memory size") }}
191 </td>
192 <td>
193 {{ format_size(profile.memory) }}
194 </td>
195 </tr>
196 <tr>
197 <td>
198 {{ _("System disk size") }}
199 </td>
200 <td>
201 {{ format_size(profile.root_size) }}
202 </td>
203 </tr>
204 </table>
205 </div>
206 </div>
207
208 <hr>
209
210 {% if profile.devices %}
211 <h3>{{ _("Peripherial devices") }}</h3>
212 {{ modules.StasyDeviceTable(profile.devices) }}
213 <hr>
214 {% end %}
215
216 <h3>{{ _("Signature images") }}</h3>
217 <ul class="unstyled">
218 {% for i in range(1) %}
219 <li>
220 <!-- XXX need some bbcode here -->
221 <a href="http://i-use.ipfire.org/profile/{{ profile.public_id }}/{{ i }}.png">
222 <img src="http://i-use.ipfire.org/profile/{{ profile.public_id }}/{{ i }}.png"
223 alt="{{ _("Signature image") }}" />
224 </a>
225 </li>
226 {% end %}
227 </ul>
228
229 <div class="pull-right">
230 <p>
231 {{ _("Last update") }}: {{ locale.format_date(profile.updated) }}
232 </p>
233 </div>
234 {% end block %}