]> git.ipfire.org Git - people/shoehn/ipfire.org.git/blobdiff - www/templates/stasy-profile.html
Big update of the fireinfo service.
[people/shoehn/ipfire.org.git] / www / templates / stasy-profile.html
index a3b4133fd3a07c901e59c32403eea8a386bbce3a..d1c8f5a554b3147c97d7dd5663fd78d8670e5af4 100644 (file)
 {% extends "stasy-base-1.html" %}
 
-{% block title %}{{ _("Profile") }} {{ profile.public_id }}{% end block %}
+{% block title %}{{ _("Profile lookup") }}{% end block %}
 
 {% block content %}
-       <h3>{{ _("Profile") }} {{ profile.public_id }}</h3>
+       <h3>{{ _("Profile lookup") }}</h3>
 
-       <table>
-               <tr>
-                       <td colspan="2">
-                               <strong>{{ _("Operating system") }}</strong>
-                       </td>
-               </tr>
-               <tr>
-                       <td>
-                               {{ _("Version") }}
-                       </td>
-                       <td>
-                               {{ profile.release }}
-                       </td>
-               </tr>
-               <tr>
-                       <td>
-                               {{ _("Architecture") }}
-                       </td>
-                       <td>
-                               {{ profile.cpu.arch }}
-                       </td>
-               </tr>
-               <tr>
-                       <td>
-                               {{ _("Kernel version") }}
-                       </td>
-                       <td>
-                               {{ profile.kernel }}
-                       </td>
-               </tr>
-       </table>
-
-       {% if profile.hypervisor %}
-               <h4>{{ _("Hypervisor") }}</h4>
-
-               <table>
-                       <tr>
-                               <td>
-                                       {{ _("Vendor") }}
-                               </td>
-                               <td>
-                                       {{ profile.hypervisor.vendor }}
-                               </td>
-                       </tr>
-                       <tr>
-                               <td>
-                                       {{ _("Model") }}
-                               </td>
-                               <td>
-                                       {{ profile.hypervisor.model or _("Unknown") }}
-                               </td>
-                       </tr>
-                       <tr>
-                               <td>
-                                       {{ _("Type") }}
-                               </td>
-                               <td>
-                                       {{ profile.hypervisor.type }}
-                               </td>
-                       </tr>
-               </table>
-       {% end %}
-       
-       <h4>{{ _("Hardware") }}</h4>
-       <table>
-               <tr>
-                       <td colspan="2">
-                               <strong>{{ _("CPU") }}</strong>
-                       </td>
-               </tr>
-               <tr>
-                       <td>
-                               {{ _("Vendor") }}
-                       </td>
-                       <td>
-                               <a href="/vendor/cpu/{{ profile.cpu.vendor }}">{{ profile.cpu.vendor }}</a>
-                       </td>
-               </tr>
-               <tr>
-                       <td>
-                               {{ _("Model") }}
-                       </td>
-                       <td>
-                                {{ profile.cpu.model_string or _("Not available") }}
-                       </td>
-               </tr>
-<!--
-               <tr>
-                       <td>
-                               {{ _("CPU flags") }}
-                       </td>
-                       <td>
-                               {{ locale.list(profile.cpu.flags) }}
-                       </td>
-               </tr>
--->
-               <tr>
-                       <td>
-                               {{ _("Supports x86_64") }}
-                       </td>
-                       <td>
-                               {% if profile.cpu.capable_64bit %}
-                                       YES
-                               {% else %}
-                                       NO
-                               {% end %}
-                       </td>
-               </tr>
-               <tr>
-                       <td>
-                               {{ _("Supports PAE") }}
-                       </td>
-                       <td>
-                               {% if profile.cpu.capable_pae %}
-                                       YES
-                               {% else %}
-                                       NO
-                               {% end %}
-                       </td>
-               </tr>
-               <tr>
-                       <td>
-                               {{ _("Supports VT-x/AMD-V") }}
-                       </td>
-                       <td>
-                               {% if profile.cpu.capable_virt %}
-                                       YES
-                               {% else %}
-                                       NO
-                               {% end %}
-                       </td>
-               </tr>
-               <tr>
-                       <td colspan="2">
-                               <strong>{{ _("Memory") }}<strong>
-                       </td>
-               </tr>
-               <tr>
-                       <td>
-                               {{ _("Size") }}
-                       </td>
-                       <td>
-                               {{ int(profile.memory) / 1024 }} {{ _("MegaBytes") }}
-                       </td>
-               </tr>
-               <tr>
-                       <td colspan="2">
-                               <strong>{{ _("Disk") }}<strong>
-                       </td>
-               </tr>
-               <tr>
-                       <td>
-                               {{ _("Size") }}
-                       </td>
-                       <td>
-                               {{ profile.root_size / 1024 }} {{ _("MegaBytes") }}
-                       </td>
-               </tr>
-               <tr>
-                       <td colspan="2">
-                               <strong>{{ _("Devices") }}</strong>
-                       </td>
-               </tr>
-               <tr>
-                       <td colspan="2">
-                               <table>
-                                       {% for device in profile.devices %}
-                                               <tr>
-                                                       <td>
-                                                               {{ device.subsystem.upper() }}
-                                                       </td>
-                                                       <td>
-                                                               <a href="/vendor/{{ device.subsystem.lower() }}/{{ device.vendor }}">{{ device.vendor_string }}</a>
-                                                       </td>
-                                                       <td>
-                                                               <a href="/model/pci/{{ device.vendor }}/{{device.model }}">{{ device.model_string }}</a>
-                                                       </td>
-                                                       <td>
-                                                               {{ device.driver or "&nbsp;" }}
-                                                       </td>
-                                               </tr>
-                                       {% end %}
-                               </table>
-                       </td>
-               </tr>
-       </table>
-
-       <p class="links">
-               {{ _("Last update") }}: {{ locale.format_date(profile.updated) }}
+       <p>
+               Please enter your profile ID and have a look of the hardware components
+               that are installed on your system:
        </p>
+
+       <form name="profile">
+               <p>
+                       <input type="text" name="profile_id" size="40" maxlength="40" />
+                       <input type="submit" value="{{ _("Show profile") }}" />
+               </p>
+       </form>
 {% end block %}