2022-06-13 20:24:17 +04:00
// Code generated by "jade.go"; DO NOT EDIT.
package web
import (
2022-06-14 18:47:11 +04:00
"html"
2022-06-13 20:24:17 +04:00
"io"
2022-06-14 18:47:11 +04:00
"strconv"
2022-06-13 20:24:17 +04:00
)
const (
2022-06-14 18:47:11 +04:00
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's dwelling">Back to main website</a><h1>Upload</h1></nav></header><section id="file"><h2>Your link</h2><center><a href=" `
2022-06-13 20:24:17 +04:00
uploaded__2 = ` "> `
uploaded__3 = ` </a></center><center>It will be available for next `
2022-06-14 18:47:11 +04:00
uploaded__4 = ` hours.</center><center><a href="/">Back to index page</a></center></section><footer>2022 Arav <<a href="mailto:me@arav.top">me@arav.top</a>></footer></body></html> `
2022-06-13 20:24:17 +04:00
)
func Uploaded ( mainSite , downloadLink string , keepForHours int , wr io . Writer ) {
buffer := & WriterAsBuffer { wr }
buffer . WriteString ( uploaded__0 )
2022-06-14 18:47:11 +04:00
buffer . WriteString ( html . EscapeString ( mainSite ) )
2022-06-13 20:24:17 +04:00
buffer . WriteString ( uploaded__1 )
2022-06-14 18:47:11 +04:00
buffer . WriteString ( html . EscapeString ( downloadLink ) )
2022-06-13 20:24:17 +04:00
buffer . WriteString ( uploaded__2 )
2022-06-14 18:47:11 +04:00
buffer . WriteString ( html . EscapeString ( downloadLink ) )
2022-06-13 20:24:17 +04:00
buffer . WriteString ( uploaded__3 )
2022-06-14 18:47:11 +04:00
buffer . WriteString ( html . EscapeString ( strconv . FormatInt ( int64 ( keepForHours ) , 10 ) ) )
2022-06-13 20:24:17 +04:00
buffer . WriteString ( uploaded__4 )
}