From 20a59532e3e6e894a9a7bfbcd260d860cc95940b Mon Sep 17 00:00:00 2001 From: dennyronngren Date: Tue, 4 Apr 2023 19:23:14 +0200 Subject: [PATCH 1/2] Featured table more and added modal popups for runtime details. Fixed up some unwanted line breaks in tables. --- openxr_inventory/templates/base.jinja2.html | 5 + .../templates/extension_support.jinja2.html | 105 ++++++++++-------- 2 files changed, 62 insertions(+), 48 deletions(-) diff --git a/openxr_inventory/templates/base.jinja2.html b/openxr_inventory/templates/base.jinja2.html index edfe9d4..d3c33ca 100644 --- a/openxr_inventory/templates/base.jinja2.html +++ b/openxr_inventory/templates/base.jinja2.html @@ -53,6 +53,11 @@ + diff --git a/openxr_inventory/templates/extension_support.jinja2.html b/openxr_inventory/templates/extension_support.jinja2.html index 801fbbf..6bbb832 100644 --- a/openxr_inventory/templates/extension_support.jinja2.html +++ b/openxr_inventory/templates/extension_support.jinja2.html @@ -41,6 +41,10 @@ padding: 5px; } +th.extname { + white-space: nowrap +} + {% endblock style %} {% block container_contents %} @@ -63,7 +67,7 @@

Extensions

{% for extension_name in extensions %} {% set support = extension_support[extension_name] %} -
+

{{ extension_name }} ({{ support | length }} runtime{{ "s" if support | length != 1 }})

Specification @@ -79,41 +83,44 @@

{{ extension_name }} ({{ support | length }} runtime{{ "s" if support | leng
- - {% for runtime in runtimes %} -
-

{{ runtime.name }}

-
    -
  • Vendor: {{ runtime.vendor }}
  • - {% if runtime.conformance_submission %} -
  • Most recent conformance submission: #{{runtime.conformance_submission}}
  • - {% endif %} - {% if not runtime.conformance_submission %} -
  • Not a conformant runtime
  • - {% endif %} - {% if runtime.conformance_notes %} -
  • Conformance notes: {{ runtime.conformance_notes }}
  • - {% endif %} -
  • Supported extensions: -
      - {% for extension in runtime.extensions %} -
    • {{extension.name}} {% if extension.notes %} - {{ extension.notes }} {% endif %}
    • - {% endfor %} -
    -
+ {% endfor %} -
+
@@ -125,20 +132,20 @@

Runtime support matrix

{% for runtime in runtimes | sort %} {# pragmatic check if the runtime name fits in the layout or if it needs to be truncated and put the full name in tooltip #} - {% if runtime.name|length < 34 %} -
{{ runtime.name }}
+ {% if runtime.name|length <= 34 %} +
{{ runtime.name }}
{% else %} -
{{ runtime.name|truncate(34, True) }}
+
{{ runtime.name|truncate(34, True) }}
{% endif %} {% endfor %} - {% macro extension_matrix_row(extension_name) %} - + {% set support = extension_support[extension_name] %} + - {{ extension_name }} + {{ extension_name }} @@ -183,30 +190,32 @@

Runtime support matrix

{% for runtime in runtimes | sort %} - + {% endfor %} {% for vc, environment_blend_modes in view_configurations.items() %} - → {{ vc }} - - - + → {{ vc }} + + + {% for runtime in runtimes | sort %} - + {% endfor %} {% for ebm in environment_blend_modes %} - → → {{ ebm }} - - - + + → → {{ ebm }} + + + + {% for runtime in runtimes | sort %} {% if ff in form_factor_support[runtime.name] and vc in form_factor_support[runtime.name][ff] and ebm in form_factor_support[runtime.name][ff][vc] %} From e5883bc454825f2c5721bb9e35e50f4a2f1d9df7 Mon Sep 17 00:00:00 2001 From: dennyronngren Date: Mon, 15 May 2023 11:12:58 +0200 Subject: [PATCH 2/2] Removed the extension section as the information is available in the big overview table. --- .../templates/extension_support.jinja2.html | 32 ------------------- 1 file changed, 32 deletions(-) diff --git a/openxr_inventory/templates/extension_support.jinja2.html b/openxr_inventory/templates/extension_support.jinja2.html index 6bbb832..9ad1b10 100644 --- a/openxr_inventory/templates/extension_support.jinja2.html +++ b/openxr_inventory/templates/extension_support.jinja2.html @@ -48,39 +48,7 @@ {% endblock style %} {% block container_contents %} -
- - -
-

Extensions

- {% for col in extensions | slice(3) %} -
- -
- {% endfor %} -
- {% for extension_name in extensions %} - {% set support = extension_support[extension_name] %} - -
-

{{ extension_name }} ({{ support | length }} runtime{{ "s" if support | length != 1 }})

-

- Specification - for {{ extension_name }} -

- -
- {% endfor %} -