|
49 | 49 | {{ end }} |
50 | 50 | </button> |
51 | 51 | </th> |
52 | | - <th class="px-4 py-3 min-w-[100px]"> |
| 52 | + <th class="px-4 py-3 min-w-[60px]"> |
53 | 53 | <button class="flex items-center gap-1 hover:text-white w-full" |
54 | 54 | hx-get="/all-albums/sort" |
55 | 55 | hx-target="#albums-table" |
|
61 | 61 | {{ end }} |
62 | 62 | </button> |
63 | 63 | </th> |
| 64 | + <th class="px-4 py-3 min-w-[60px]"> |
| 65 | + <button class="flex items-center gap-1 hover:text-white w-full" |
| 66 | + hx-get="/all-albums/sort" |
| 67 | + hx-target="#albums-table" |
| 68 | + hx-indicator="#loading-indicator" |
| 69 | + hx-vals='{"sort": "vowels", "dir": "{{ .NextSortDir }}"}'> |
| 70 | + Vowels |
| 71 | + {{ if eq .Sort "vowels" }} |
| 72 | + {{ if eq .SortDir "asc" }}↑{{ else }}↓{{ end }} |
| 73 | + {{ end }} |
| 74 | + </button> |
| 75 | + </th> |
| 76 | + <th class="px-4 py-3 min-w-[60px]"> |
| 77 | + <button class="flex items-center gap-1 hover:text-white w-full" |
| 78 | + hx-get="/all-albums/sort" |
| 79 | + hx-target="#albums-table" |
| 80 | + hx-indicator="#loading-indicator" |
| 81 | + hx-vals='{"sort": "consonants", "dir": "{{ .NextSortDir }}"}'> |
| 82 | + Consonants |
| 83 | + {{ if eq .Sort "consonants" }} |
| 84 | + {{ if eq .SortDir "asc" }}↑{{ else }}↓{{ end }} |
| 85 | + {{ end }} |
| 86 | + </button> |
| 87 | + </th> |
64 | 88 | </tr> |
65 | 89 | </thead> |
66 | 90 | <tbody class="divide-y divide-gray-700"> |
|
78 | 102 | <td class="px-4 py-3">{{ .TotalUniqueWords }}</td> |
79 | 103 | <td class="px-4 py-3">{{ .FormattedLength }}</td> |
80 | 104 | <td class="px-4 py-3">{{ .AverageWordsPerTrack }}</td> |
| 105 | + <td class="px-4 py-3">Soon</td> |
| 106 | + <td class="px-4 py-3">Soon</td> |
81 | 107 | </tr> |
82 | 108 | {{ end }} |
83 | 109 | </tbody> |
|
0 commit comments