mirror of
https://codeberg.org/pluja/kycnot.me
synced 2025-01-07 13:17:57 -05:00
✨ 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:
parent
89ba93f45c
commit
0b5559e8ae
@ -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
|
Loading…
Reference in New Issue
Block a user