From dc236c1d8dafd5e471166abfd376f6afcf166ecf Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Wed, 20 Mar 2024 15:51:36 -0400 Subject: [PATCH] Rearranging top level menu a bit --- src/Enum/CardBus.php | 3 ++ templates/computer-menu.html.twig | 58 +++++++++++++++++-------------- templates/gpu/index.html.twig | 22 ++++++------ templates/photo-menu.html.twig | 22 ++++++------ 4 files changed, 57 insertions(+), 48 deletions(-) diff --git a/src/Enum/CardBus.php b/src/Enum/CardBus.php index bda6f6f..6de31c1 100644 --- a/src/Enum/CardBus.php +++ b/src/Enum/CardBus.php @@ -11,6 +11,9 @@ enum CardBus: string { case PCIE_40_4 = 'PCIe 4.0 x4'; case PCIE_40_8 = 'PCIe 4.0 x8'; case PCIE_40_16 = 'PCIe 4.0 x16'; + case PCIE_50_4 = 'PCIe 5.0 x4'; + case PCIE_50_8 = 'PCIe 5.0 x8'; + case PCIE_50_16 = 'PCIe 5.0 x16'; case PCI_33 = 'PCI 33'; case PCI_33V_33 = '3.3V PCI 33'; diff --git a/templates/computer-menu.html.twig b/templates/computer-menu.html.twig index b863de8..abfcf62 100644 --- a/templates/computer-menu.html.twig +++ b/templates/computer-menu.html.twig @@ -1,30 +1,4 @@
- - - + + +
diff --git a/templates/gpu/index.html.twig b/templates/gpu/index.html.twig index 52fe73d..400223a 100644 --- a/templates/gpu/index.html.twig +++ b/templates/gpu/index.html.twig @@ -54,14 +54,14 @@ GPU Card Brand Alternate Model Name - Card Keying - Bus Interface + Count + Key / Bus Slot Width Power Tdp - GPU Clock + GPU Clock Memory - Shading Units + Link - Count + Notes @@ -103,8 +103,8 @@ {% if gpu.boardBrand %}{{ gpu.boardBrand.name }}{% else %}Unknown{% endif %} {{ gpu.alternateModelName }} - {{ gpu.cardKey.value }} - {{ gpu.busInterface.value }} + {{ gpu.count }} + {{ gpu.cardKey.value }} / {{ gpu.busInterface.value }} {{ gpu.slotSpan }} {% if gpu.pcie6power > 0 or gpu.pcie8power > 0 %} @@ -129,7 +129,7 @@ {% endif %} {{ gpu.memorySize }}MiB {{ gpu.memoryClock }}MHz {{ gpu.memoryBus }}bit {{ gpu.memoryType }} - {{ gpu.shadingUnits }} + {{ gpu.link }} - {{ gpu.count }} + {{ gpu.notes }} {% else %} diff --git a/templates/photo-menu.html.twig b/templates/photo-menu.html.twig index d226f56..63c3814 100644 --- a/templates/photo-menu.html.twig +++ b/templates/photo-menu.html.twig @@ -1,4 +1,15 @@
+
+ +
-
- -