blob: d51446d263fc7362ccb9c97c88b3782872fe6dc2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{{define "trello-boards"}}
{{if .Boards}}
<section class="card section-spacing text-shadow-sm">
<!-- Section Header with Brand Color -->
<div class="flex items-center gap-3 mb-6">
<div class="w-1 h-8 bg-trello rounded"></div>
<h2 class="text-2xl font-light text-white tracking-wide">Trello Boards</h2>
</div>
<!-- Active Boards Grid (boards with cards) -->
<div class="card-grid mb-6">
{{range .Boards}}
{{if .Cards}}
{{template "trello-board" .}}
{{end}}
{{end}}
</div>
<!-- Empty Boards Collapsible (boards without cards) -->
<details class="mt-6 border-t border-white/10 pt-6">
<summary class="cursor-pointer flex items-center justify-between group">
<span class="text-sm font-medium text-white/50 group-hover:text-white/80 transition-colors">
Empty Boards
</span>
<svg class="w-5 h-5 text-white/40 group-hover:text-white/60 transition-all"
fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7" />
</svg>
</summary>
<div class="mt-4">
<div class="card-grid">
{{range .Boards}}
{{if not .Cards}}
<div class="border border-white/10 rounded-lg p-4 bg-black/30 opacity-70 hover:opacity-100 transition-opacity">
<h3 class="font-medium text-white/70">{{.Name}}</h3>
<p class="text-sm text-white/40 mt-2">No cards</p>
</div>
{{end}}
{{end}}
</div>
</div>
</details>
</section>
{{end}}
{{end}}
|