]>
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() %} | |
73 | {{ _("using Intel Hyper-Threading Technology") }} | |
74 | {% end %} | |
75 | </p> | |
76 | {% end %} | |
77 | ||
78 | <ul class="list-inline"> | |
79 | <li> | |
80 | {{ _("Supported features") }}: | |
81 | </li> | |
82 | {% for cap, available in profile.processor.capabilities %} | |
83 | <li> | |
84 | <span class="label {% if available is None %}label-default{% elif available %}label-success{% else %}label-danger{% end %}"> | |
85 | {% if cap == "64bit" %} | |
86 | {{ _("64 bit") }} | |
87 | {% elif cap == "aes" %} | |
88 | {{ _("AES-NI") }} | |
89 | {% elif cap == "nx" %} | |
90 | {{ _("NX") }} | |
91 | {% elif cap == "pae" %} | |
92 | {{ _("PAE") }} | |
93 | {% elif cap == "rdrand" %} | |
94 | {{ _("RDRAND") }} | |
95 | {% elif cap == "virt" %} | |
96 | {{ _("VT-x/AMD-V") }} | |
97 | {% end %} | |
98 | </span> | |
99 | </li> | |
140172cf | 100 | {% end %} |
66862195 | 101 | </ul> |
140172cf | 102 | </div> |
140172cf | 103 | |
66862195 MT |
104 | <div class="col-md-5"> |
105 | <dl class="dl-horizontal"> | |
106 | {% if profile.virtual %} | |
107 | <dt> | |
108 | <a href="/stats/virtual">{{ _("Hypervisor") }}</a> | |
109 | </dt> | |
110 | <dd> | |
111 | {% if profile.hypervisor == "VMWare" %} | |
112 | {{ _("VMware") }} | |
113 | {% elif profile.hypervisor is None %} | |
114 | {{ _("Unknown") }} | |
115 | {% else %} | |
116 | {{ profile.hypervisor }} | |
117 | {% end %} | |
118 | </dd> | |
119 | {% elif not profile.appliance_id and profile.system %} | |
120 | {% if profile.system_vendor %} | |
121 | <dt>{{ _("Vendor") }}</dt> | |
122 | <dd>{{ profile.system_vendor }}</dd> | |
123 | {% end %} | |
140172cf | 124 | |
66862195 MT |
125 | {% if profile.system_model %} |
126 | <dt>{{ _("Model") }}</dt> | |
127 | <dd>{{ profile.system_model }}</dd> | |
140172cf | 128 | {% end %} |
66862195 | 129 | {% end %} |
140172cf | 130 | |
66862195 MT |
131 | {% if profile.memory %} |
132 | <dt> | |
133 | <a href="/stats/memory">{{ _("Memory") }}</a> | |
134 | </dt> | |
135 | <dd> | |
136 | {% if profile.memory <= (256 * 1024 ** 2) %} | |
137 | <span class="text-danger"> | |
138 | {% elif profile.memory >= 1024 ** 3 %} | |
139 | <span class="text-success"> | |
140 | {% else %} | |
141 | <span class="text-warning"> | |
140172cf | 142 | {% end %} |
66862195 MT |
143 | {{ format_size(profile.memory) }} |
144 | </span> | |
145 | </dd> | |
146 | {% end %} | |
140172cf | 147 | |
66862195 MT |
148 | {% if profile.storage %} |
149 | <dt>{{ _("System Storage") }}</dt> | |
150 | <dd>{{ format_size(profile.storage) }}</dd> | |
151 | {% end %} | |
152 | ||
153 | {% if profile.kernel %} | |
154 | <dt>{{ _("Kernel") }}</dt> | |
155 | <dd>{{ profile.kernel }}</dd> | |
156 | {% end %} | |
157 | ||
158 | {% if profile.location %} | |
159 | <dt> | |
160 | <a href="/stats/geo">{{ _("Location") }}</a> | |
161 | </dt> | |
162 | <dd> | |
163 | {{ profile.location_string }} | |
164 | </dd> | |
165 | {% end %} | |
140172cf | 166 | |
66862195 MT |
167 | {% if profile.language %} |
168 | <dt> | |
169 | <a href="/stats/languages">{{ _("Language") }}</a> | |
170 | </dt> | |
171 | <dd>{% module LanguageName(profile.language) %}</dd> | |
172 | {% end %} | |
173 | </dl> | |
174 | </div> | |
140172cf MT |
175 | </div> |
176 | </div> | |
177 | ||
140172cf | 178 | {% if profile.devices %} |
66862195 | 179 | {% module FireinfoDeviceAndGroupsTable([d for d in profile.devices if d.is_showable()]) %} |
140172cf MT |
180 | <hr> |
181 | {% end %} | |
182 | ||
183 | <h3>{{ _("Signature images") }}</h3> | |
be699a90 | 184 | <ul class="list-unstyled"> |
140172cf MT |
185 | {% for i in range(1) %} |
186 | <li> | |
187 | <!-- XXX need some bbcode here --> | |
188 | <a href="http://i-use.ipfire.org/profile/{{ profile.public_id }}/{{ i }}.png"> | |
189 | <img src="http://i-use.ipfire.org/profile/{{ profile.public_id }}/{{ i }}.png" | |
190 | alt="{{ _("Signature image") }}" /> | |
191 | </a> | |
192 | </li> | |
193 | {% end %} | |
194 | </ul> | |
195 | ||
196 | <div class="pull-right"> | |
197 | <p> | |
66862195 | 198 | {{ _("Last update") }}: {{ locale.format_date(profile.time_updated) }} |
140172cf MT |
199 | </p> |
200 | </div> | |
201 | {% end block %} |