From c1a40fc3e507da7e651649f7817ddd1e5e4fe1f6 Mon Sep 17 00:00:00 2001 From: pluja Date: Tue, 31 Oct 2023 09:40:14 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20fix(attribute.html):=20remove=20?= =?UTF-8?q?commented=20out=20code=20for=20attribute=20title=20to=20improve?= =?UTF-8?q?=20code=20readability=20and=20maintainability=20=F0=9F=8E=A8=20?= =?UTF-8?q?style(attribute.html):=20refactor=20attribute=20rating=20displa?= =?UTF-8?q?y=20to=20use=20emoji=20icons=20for=20better=20visual=20represen?= =?UTF-8?q?tation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/web/templates/attribute.html | 50 +++++++++++++++++--------------- 1 file changed, 26 insertions(+), 24 deletions(-) diff --git a/src/web/templates/attribute.html b/src/web/templates/attribute.html index 9977d18..821fd5a 100644 --- a/src/web/templates/attribute.html +++ b/src/web/templates/attribute.html @@ -1,33 +1,35 @@
-

{{.Attribute.Title}}

- {{if eq 0 .Attribute.Rating}} - - info - - {{end}} - {{if eq 1 .Attribute.Rating}} - - good feature - - {{end}} - {{if eq 2 .Attribute.Rating}} - - warning - - {{end}} - {{if eq 3 .Attribute.Rating}} - - caution - - {{end}} + -
-

+

+ +

+ {{if eq 0 .Attribute.Rating}} + 🔵 + {{end}} + {{if eq 1 .Attribute.Rating}} + ✅ + {{end}} + {{if eq 2 .Attribute.Rating}} + ⚠️ + {{end}} + {{if eq 3 .Attribute.Rating}} + 🛑 + {{end}} + {{.Attribute.Title}} +

+ +

{{if ne .Attribute.Description ""}} {{.Attribute.Description}} {{else}} - This {{.Attribute.Name}} does not have a description. + {{.Attribute.Name}} does not have a description. {{end}}