blob: 3d42517675d53307eac02778fdc43aa19af42503 (
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">
<!-- 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-bold text-gray-900">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-gray-200 pt-6">
<summary class="cursor-pointer flex items-center justify-between group">
<span class="text-sm font-medium text-gray-600 group-hover:text-gray-900 transition-colors">
Empty Boards
</span>
<svg class="w-5 h-5 text-gray-400 group-hover:text-gray-600 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-gray-200 rounded-lg p-4 bg-gray-50 opacity-70 hover:opacity-100 transition-opacity">
<h3 class="font-semibold text-gray-700">{{.Name}}</h3>
<p class="text-sm text-gray-500 mt-2">No cards</p>
</div>
{{end}}
{{end}}
</div>
</div>
</details>
</section>
{{end}}
{{end}}
|