%s
%s
package html import ( "fmt" "leech/thumbnail" "strings" "github.com/dustin/go-humanize" ) type Entry struct { IsDir bool Name string Size int64 } func FileListPage(req string, entries []Entry, big_preview_mode bool) string { headerCSS1 := "" if !big_preview_mode { headerCSS1 = "display: flex;" } else { headerCSS1 = "width: 320px;" } headerCSS2 := "" if !big_preview_mode { headerCSS2 = `width: 48px;height: 48px;` } else { headerCSS2 = `width: 256px;height: 256px;` } linkSuffixToggle := "" linkSuffix := "" if big_preview_mode { linkSuffixToggle = "" linkSuffix = "?big_preview=true" } else { linkSuffixToggle = "?big_preview=true" linkSuffix = "" } header := fmt.Sprintf(`