Compare commits
2 Commits
5b67d5c5f0
...
6a8445fbd0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6a8445fbd0 | ||
|
|
0e4da7e436 |
@@ -6,9 +6,9 @@
|
|||||||
<body>
|
<body>
|
||||||
<div>
|
<div>
|
||||||
{{ range .Series }}
|
{{ range .Series }}
|
||||||
<div style="display: inline-block; max-width: 12em; max-height: 9em; margin-bottom: .7em;">
|
<div style="display: inline-block; width: 12em; height: 9em; margin-bottom: .7em;">
|
||||||
<a href="/media/{{ .HREF }}">
|
<a href="/media/{{ .HREF }}">
|
||||||
<img src="/media/{{ .Thumbnail }}" alt="{{ .Thumbnail }}"/>
|
<img src="/media/{{ .Thumbnail }}" alt="{{ .HREF }}"/>
|
||||||
<span>{{ .Thumbnail }}</span>
|
<span>{{ .Thumbnail }}</span>
|
||||||
<br>
|
<br>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ func Run(ctx context.Context, args []string) error {
|
|||||||
series = append(series, v)
|
series = append(series, v)
|
||||||
}
|
}
|
||||||
slices.SortFunc(series, func(a, b Series) int {
|
slices.SortFunc(series, func(a, b Series) int {
|
||||||
return -1 * strings.Compare(path.Base(a.Thumbnail), path.Base(b.Thumbnail))
|
return -1 * strings.Compare(path.Base(a.HREF), path.Base(b.HREF))
|
||||||
})
|
})
|
||||||
|
|
||||||
if err := tmpl.Execute(w, map[string]any{
|
if err := tmpl.Execute(w, map[string]any{
|
||||||
|
|||||||
1
cmd/ui/testdata/cam/4.mp4
vendored
1
cmd/ui/testdata/cam/4.mp4
vendored
@@ -1 +0,0 @@
|
|||||||
LAdN7KVw-Ig.mp4
|
|
||||||
1
cmd/ui/testdata/cam/5.jpg
vendored
1
cmd/ui/testdata/cam/5.jpg
vendored
@@ -1 +0,0 @@
|
|||||||
LAdN7KVw-Ig.jpg
|
|
||||||
Reference in New Issue
Block a user