diff --git a/ereuse_devicehub/resources/device/templates/devices/layout.html b/ereuse_devicehub/resources/device/templates/devices/layout.html index f513d0b9..a9509915 100644 --- a/ereuse_devicehub/resources/device/templates/devices/layout.html +++ b/ereuse_devicehub/resources/device/templates/devices/layout.html @@ -1,400 +1,181 @@ -{% import 'devices/macros.html' as macros %} - - -
- - - - -- | Range | -
---|---|
- CPU – {{ device.processor_model }} - | -- Processor Rate = {% if device.rate %} - {{ device.rate.processor_range }} - ({{ device.rate.processor }}) - {% endif %} - | -
- RAM – {{ device.ram_size // 1000 }} GB - {{ macros.component_type(device.components, 'RamModule') }} - | -- RAM Rate = {% if device.rate %} - {{ device.rate.ram_range }} - ({{ device.rate.ram }}) - {% endif %} - | -
- Data Storage – {{ device.data_storage_size // 1000 }} GB - {{ macros.component_type(device.components, 'SolidStateDrive') }} - {{ macros.component_type(device.components, 'HardDrive') }} - | -- Data Storage Rate = {% if device.rate %} - {{ device.rate.data_storage_range }} - ({{ device.rate.data_storage }}) - {% endif %} - | -
- Graphics – {{ device.graphic_card_model }} - {{ macros.component_type(device.components, 'GraphicCard') }} - | -- |
- Network – - {% if device.network_speeds[0] %} - Ethernet - {% if device.network_speeds[0] != None %} - max. {{ device.network_speeds[0] }} Mbps - {% endif %} - {% endif %} - {% if device.network_speeds[0] and device.network_speeds[1] %} - + - {% endif %} - {% if device.network_speeds[1] %} - WiFi - {% if device.network_speeds[1] != None %} - max. {{ device.network_speeds[1] }} Mbps - {% endif %} - {% endif %} - {{ macros.component_type(device.components, 'NetworkAdapter') }} - | -- |
- | Range | -
---|---|
- CPU – {{ abstract.processor_model }} - | -- Processor Rate = {% if abstract.rate %} - {{ abstract.rate.processor_range }} - ({{ abstract.rate.processor }}) - {% endif %} - | -
- RAM – {{ abstract.ram_size // 1000 }} GB - {{ macros.component_type(abstract.components, 'RamModule') }} - | -- RAM Rate = {% if abstract.rate %} - {{ abstract.rate.ram_range }} - ({{ abstract.rate.ram }}) - {% endif %} - | -
- Data Storage – {{ abstract.data_storage_size // 1000 }} GB - {{ macros.component_type(abstract.components, 'SolidStateDrive') }} - {{ macros.component_type(abstract.components, 'HardDrive') }} - | -- Data Storage Rate = {% if abstract.rate %} - {{ abstract.rate.data_storage_range }} - ({{ abstract.rate.data_storage }}) - {% endif %} - | -
- Graphics – {{ abstract.graphic_card_model }} - {{ macros.component_type(abstract.components, 'GraphicCard') }} - | -- |
- Network – - {% if abstract.network_speeds[0] %} - Ethernet - {% if abstract.network_speeds[0] != None %} - max. {{ abstract.network_speeds[0] }} Mbps - {% endif %} - {% endif %} - {% if abstract.network_speeds[0] and abstract.network_speeds[1] %} - + - {% endif %} - {% if abstract.network_speeds[1] %} - WiFi - {% if abstract.network_speeds[1] != None %} - max. {{ abstract.network_speeds[1] }} Mbps - {% endif %} - {% endif %} - {{ macros.component_type(abstract.components, 'NetworkAdapter') }} - | -- |
+ {{ component.manufacturer }}
+ {{ component.model }}
+