🔀 refactor(service_card.html): update service card template to display different label based on service type or category

🐛 fix(service_card.html): fix missing newline at the end of the file
This commit is contained in:
pluja 2023-10-31 18:00:06 +01:00
parent 9d6bdb1341
commit 5e00ea8d94

View File

@ -26,10 +26,17 @@
</div>
</div>
<div class="flex items-center justify-center pt-3 text-xs">
<span class="px-2 py-1 mr-1 font-bold uppercase border text-[10px] rounded text-white/70 bg-zinc-900 border-zinc-700">
{{.Type}}
</span>
{{if eq .Type "exchange"}}
<span class="px-2 py-1 mr-1 text-xs font-bold uppercase border rounded text-white/70 bg-zinc-900 border-zinc-700">
{{.Type}}
</span>
{{else}}
<span class="px-2 py-1 mr-1 text-xs font-bold uppercase border rounded text-white/70 bg-zinc-900 border-zinc-700">
{{.Category}}
</span>
{{end}}
{{template "components/service_icons" .}}
</div>
</div>
</a>
</a>