]>
Commit | Line | Data |
---|---|---|
66862195 | 1 | {% extends "../base.html" %} |
140172cf MT |
2 | |
3 | {% block title %}{{ _("Profile") }} {{ profile.public_id }}{% end block %} | |
4 | ||
5 | {% block body %} | |
6 | <div class="page-header"> | |
66862195 | 7 | <h2>{{ _("Profile") }} <small>{{ profile.public_id }}</small></h2> |
140172cf MT |
8 | </div> |
9 | ||
66862195 MT |
10 | <div class="ac"> |
11 | <h3>{{ profile.release }}</h3> | |
12 | ||
13 | {% for zone in profile.network %} | |
14 | {% if zone == "red" %} | |
15 | <span class="label label-danger">{{ _("RED") }}</span> | |
16 | {% elif zone == "green" %} | |
17 | <span class="label label-success">{{ _("GREEN") }}</span> | |
18 | {% elif zone == "orange" %} | |
19 | <span class="label label-warning">{{ _("ORANGE") }}</span> | |
20 | {% elif zone == "blue" %} | |
21 | <span class="label label-info">{{ _("BLUE") }}</span> | |
140172cf | 22 | {% end %} |
66862195 | 23 | {% end %} |
140172cf | 24 | </div> |
66862195 | 25 | |
140172cf MT |
26 | <hr> |
27 | ||
66862195 MT |
28 | {% if profile.appliance_id %} |
29 | <div class="alert alert-success"> | |
4238ef83 MT |
30 | {% if profile.appliance_id.startswith("fountainnetworks-") %} |
31 | <span class="pull-right"> | |
32 | {{ _("Get yours at") }} | |
33 | <a href="http://www.fountainnetworks.com/" class="alert-link"> | |
34 | fountainnetworks.com | |
35 | </a> | |
36 | </span> | |
37 | {% elif profile.appliance_id.startswith("lightningwirelabs-") %} | |
66862195 MT |
38 | <span class="pull-right"> |
39 | {{ _("Get yours at") }} | |
40 | <a href="http://www.lightningwirelabs.com/products/ipfire/appliances" class="alert-link"> | |
41 | lightningwirelabs.com | |
42 | </a> | |
43 | </span> | |
44 | {% end %} | |
45 | ||
46 | <strong>{{ profile.appliance }}</strong> | |
47 | </div> | |
48 | {% end %} | |
49 | ||
50 | <div class="well well-sm"> | |
140172cf | 51 | <div class="row"> |
66862195 MT |
52 | <div class="col-md-7"> |
53 | <h4> | |
54 | <a href="/stats/cpus">{{ _("Processor") }}</a> | |
55 | </h4> | |
140172cf | 56 | <p> |
66862195 MT |
57 | <strong>{{ profile.processor }}</strong> |
58 | </p> | |
59 | ||
60 | {% if profile.processor.count >= 2 %} | |
61 | <p> | |
62 | {% if profile.processor.count == 2 %} | |
63 | {{ _("Dual-core processor") }} | |
64 | {% elif profile.processor.count == 4 %} | |
65 | {{ _("Quad-core processor") }} | |
66 | {% elif profile.processor.count == 8 %} | |
67 | {{ ("Octo-core processor") }} | |
68 | {% else %} | |
69 | {{ _("%s core processor") % profile.processor.count }} | |
140172cf | 70 | {% end %} |
66862195 MT |
71 | |
72 | {% if profile.processor.uses_ht() %} | |
2ada97a6 MT |
73 | {% if profile.processor.vendor == "Intel" %} |
74 | {{ _("using Intel Hyper-Threading Technology") }} | |
75 | {% else %} | |
76 | {{ _("with %s logical cores") % profile.processor.core_count }} | |
77 | {% end %} | |
66862195 MT |
78 | {% end %} |
79 | </p> | |
80 | {% end %} | |
81 | ||
82 | <ul class="list-inline"> | |
83 | <li> | |
84 | {{ _("Supported features") }}: | |
85 | </li> | |
86 | {% for cap, available in profile.processor.capabilities %} | |
87 | <li> | |
88 | <span class="label {% if available is None %}label-default{% elif available %}label-success{% else %}label-danger{% end %}"> | |
89 | {% if cap == "64bit" %} | |
90 | {{ _("64 bit") }} | |
91 | {% elif cap == "aes" %} | |
92 | {{ _("AES-NI") }} | |
93 | {% elif cap == "nx" %} | |
94 | {{ _("NX") }} | |
95 | {% elif cap == "pae" %} | |
96 | {{ _("PAE") }} | |
97 | {% elif cap == "rdrand" %} | |
98 | {{ _("RDRAND") }} | |
99 | {% elif cap == "virt" %} | |
100 | {{ _("VT-x/AMD-V") }} | |
101 | {% end %} | |
102 | </span> | |
103 | </li> | |
140172cf | 104 | {% end %} |
66862195 | 105 | </ul> |
140172cf | 106 | </div> |
140172cf | 107 | |
66862195 MT |
108 | <div class="col-md-5"> |
109 | <dl class="dl-horizontal"> | |
110 | {% if profile.virtual %} | |
111 | <dt> | |
112 | <a href="/stats/virtual">{{ _("Hypervisor") }}</a> | |
113 | </dt> | |
114 | <dd> | |
115 | {% if profile.hypervisor == "VMWare" %} | |
116 | {{ _("VMware") }} | |
117 | {% elif profile.hypervisor is None %} | |
118 | {{ _("Unknown") }} | |
119 | {% else %} | |
120 | {{ profile.hypervisor }} | |
121 | {% end %} | |
122 | </dd> | |
123 | {% elif not profile.appliance_id and profile.system %} | |
124 | {% if profile.system_vendor %} | |
125 | <dt>{{ _("Vendor") }}</dt> | |
126 | <dd>{{ profile.system_vendor }}</dd> | |
127 | {% end %} | |
140172cf | 128 | |
66862195 MT |
129 | {% if profile.system_model %} |
130 | <dt>{{ _("Model") }}</dt> | |
131 | <dd>{{ profile.system_model }}</dd> | |
140172cf | 132 | {% end %} |
66862195 | 133 | {% end %} |
140172cf | 134 | |
66862195 MT |
135 | {% if profile.memory %} |
136 | <dt> | |
137 | <a href="/stats/memory">{{ _("Memory") }}</a> | |
138 | </dt> | |
139 | <dd> | |
140 | {% if profile.memory <= (256 * 1024 ** 2) %} | |
141 | <span class="text-danger"> | |
142 | {% elif profile.memory >= 1024 ** 3 %} | |
143 | <span class="text-success"> | |
144 | {% else %} | |
145 | <span class="text-warning"> | |
140172cf | 146 | {% end %} |
66862195 MT |
147 | {{ format_size(profile.memory) }} |
148 | </span> | |
149 | </dd> | |
150 | {% end %} | |
140172cf | 151 | |
66862195 MT |
152 | {% if profile.storage %} |
153 | <dt>{{ _("System Storage") }}</dt> | |
154 | <dd>{{ format_size(profile.storage) }}</dd> | |
155 | {% end %} | |
156 | ||
157 | {% if profile.kernel %} | |
158 | <dt>{{ _("Kernel") }}</dt> | |
159 | <dd>{{ profile.kernel }}</dd> | |
160 | {% end %} | |
161 | ||
162 | {% if profile.location %} | |
163 | <dt> | |
164 | <a href="/stats/geo">{{ _("Location") }}</a> | |
165 | </dt> | |
166 | <dd> | |
167 | {{ profile.location_string }} | |
168 | </dd> | |
169 | {% end %} | |
140172cf | 170 | |
66862195 MT |
171 | {% if profile.language %} |
172 | <dt> | |
173 | <a href="/stats/languages">{{ _("Language") }}</a> | |
174 | </dt> | |
175 | <dd>{% module LanguageName(profile.language) %}</dd> | |
176 | {% end %} | |
177 | </dl> | |
178 | </div> | |
140172cf MT |
179 | </div> |
180 | </div> | |
181 | ||
140172cf | 182 | {% if profile.devices %} |
66862195 | 183 | {% module FireinfoDeviceAndGroupsTable([d for d in profile.devices if d.is_showable()]) %} |
140172cf MT |
184 | <hr> |
185 | {% end %} | |
186 | ||
187 | <h3>{{ _("Signature images") }}</h3> | |
be699a90 | 188 | <ul class="list-unstyled"> |
140172cf MT |
189 | {% for i in range(1) %} |
190 | <li> | |
191 | <!-- XXX need some bbcode here --> | |
192 | <a href="http://i-use.ipfire.org/profile/{{ profile.public_id }}/{{ i }}.png"> | |
193 | <img src="http://i-use.ipfire.org/profile/{{ profile.public_id }}/{{ i }}.png" | |
194 | alt="{{ _("Signature image") }}" /> | |
195 | </a> | |
196 | </li> | |
197 | {% end %} | |
198 | </ul> | |
199 | ||
200 | <div class="pull-right"> | |
201 | <p> | |
66862195 | 202 | {{ _("Last update") }}: {{ locale.format_date(profile.time_updated) }} |
140172cf MT |
203 | </p> |
204 | </div> | |
205 | {% end block %} |