got the "Featured/Your Communities" box to display correctly

This commit is contained in:
2025-09-28 23:15:18 -06:00
parent 715ea29c39
commit e37a58f62a
4 changed files with 260 additions and 12 deletions
+11 -10
View File
@@ -13,17 +13,18 @@
<h3 class="text-white font-bold text-base">{{ sb.Title }}</h3>
</div>
<div class="bg-blue-400 px-2 py-2 rounded-b">
<div class="flex items-center">
{{ if len(sb.Items) > 0 }}
{{ range sb.Items }}
<div class="text-small">
<span class="mr-2">🟣</span>
<a href="{{ .Link }}" class="text-blue-700 hover:text-blue-900 font-bold text-sm">{{ .Text }}</a>
</div>
<div class="space-y-2">
{{ if len(sb.Items) > 0 }}
{{ range sb.Items }}
<div class="flex items-center">
<span class="mr-2">🟣</span>
<a href="{{ .Link }}" class="text-blue-700 hover:text-blue-900 font-bold text-sm">{{ .Text }}</a>
{{ if .Flags["admin"] }}<span class="ml-1">👑</span>{{ end }}
</div>
{{ end }}
{{ else }}
<div class="text-small">You are not a member of any communities.</div>
{{ end }}
{{ else }}
<div class="text-small">You are not a member of any communities.</div>
{{ end }}
</div>
</div>
</div>