feat(attribute_line.html): add attribute_line.html component to display attribute information with different styles based on the rating value

🐛 fix(attribute_line.html): fix missing newline at the end of the file to adhere to coding conventions
This commit is contained in:
pluja 2023-10-31 00:04:39 +01:00
parent 89ba93f45c
commit 0b5559e8ae

View File

@ -1,4 +1,4 @@
<a href="/point/{{.ID}}" class="block py-1.5 px-3 text-center text-sm border rounded-lg transition duration-300
<a href="/attr/{{.ID}}" class="block py-1.5 px-3 text-center text-sm border rounded-lg transition duration-300
{{if eq 1 .Rating }}border-green-900 bg-green-900/30 hover:bg-green-900/50 hover:border-green-700
{{else if eq 2 .Rating }}border-amber-900 bg-amber-900/30 hover:bg-amber-900/50 hover:border-amber-700
{{else if eq 3 .Rating }}border-red-900 bg-red-900/30 hover:bg-red-900/50 hover:border-red-700