1
0
dwelling-upload/web/uploaded.jade.mod.go

34 lines
1.7 KiB
Go

// Code generated by "jade.go"; DO NOT EDIT.
package web
import (
"html"
"io"
"strconv"
)
const (
uploaded__0 = `<!DOCTYPE html><html lang="en"><head><title>Arav's dwelling / Upload</title><meta charset="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><meta name="theme-color" content="#cd2682"/><meta name="description" content="File upload service for ya."/><link rel="icon" href="/assets/img/favicon.svg" sizes="any" type="image/svg+xml"/><link href="/assets/css/main.css" rel="stylesheet"/></head><body><header><svg id="logo" viewBox="0 -25 216 40"><text class="logo">Arav's dwelling</text><text class="under" y="11">Welcome to my sacred place, wanderer</text></svg><nav><a href="`
uploaded__1 = `" title="Arav&#39;s dwelling">Back to main website</a><h1>Upload</h1></nav></header><section id="file"><h2>Your link</h2><center><a href="`
uploaded__2 = `">`
uploaded__3 = `</a></center><center>It will be available for next `
uploaded__4 = ` hours.</center><center><a href="/">Back to index page</a></center></section><footer>2022 Arav &lt;<a href="mailto:me@arav.top">me@arav.top</a>&gt;</footer></body></html>`
)
func Uploaded(mainSite, site, downloadLink string, keepForHours int, wr io.Writer) {
buffer := &WriterAsBuffer{wr}
buffer.WriteString(uploaded__0)
buffer.WriteString(html.EscapeString(mainSite))
buffer.WriteString(uploaded__1)
buffer.WriteString(html.EscapeString(downloadLink))
buffer.WriteString(uploaded__2)
buffer.WriteString(html.EscapeString(site))
buffer.WriteString(html.EscapeString(downloadLink))
buffer.WriteString(uploaded__3)
buffer.WriteString(html.EscapeString(strconv.FormatInt(int64(keepForHours), 10)))
buffer.WriteString(uploaded__4)
}