Files
huso/season.qtpl.go
2022-07-01 17:08:10 +02:00

154 lines
5.1 KiB
Go

// Code generated by qtc from "season.qtpl". DO NOT EDIT.
// See https://github.com/valyala/quicktemplate for details.
//line season.qtpl:1
package main
//line season.qtpl:2
import (
qtio422016 "io"
qt422016 "github.com/valyala/quicktemplate"
)
//line season.qtpl:2
var (
_ = qtio422016.Copy
_ = qt422016.AcquireByteBuffer
)
//line season.qtpl:2
func StreamIndex(qw422016 *qt422016.Writer, animes []Anime, oracles []MmOracle, charts []MovieChart, log string) {
//line season.qtpl:2
qw422016.N().S(`
`)
//line season.qtpl:3
qw422016.N().S(` <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <style> * { font-family: sans-serif; } table { border-spacing: 0; } td, th { text-align: left; padding: 0 0.5em; } td:first-child, th:first-child { padding-left: 0; } td:last-child, th:first-child { padding-right: 0; } body { background-color: #1a1a1a; color: #fff; } </style> <title>HUSO - Hanami universeller Serien Organizer</title> </head> <body> <h1>HUSO - Hanami universeller Serien Organizer</h1> <h2>Log</h2> <pre>`)
//line season.qtpl:23
qw422016.E().S(log)
//line season.qtpl:23
qw422016.N().S(`</pre> <h2>Anime</h2> <table> <tr> <td><strong>Airing 📺</strong></td> <td>`)
//line season.qtpl:28
qw422016.N().D(len(animes))
//line season.qtpl:28
qw422016.N().S(`</td> </tr> </table> </br> <table> <tr> <th>MALID</th> <th>SCORE</th> <th>TITLE</th> </tr> `)
//line season.qtpl:38
for _, anime := range animes {
//line season.qtpl:38
qw422016.N().S(` <tr> <td><a href="`)
//line season.qtpl:40
qw422016.E().S(anime.URL)
//line season.qtpl:40
qw422016.N().S(`" target="_blank" rel="noopener noreferrer">`)
//line season.qtpl:40
qw422016.N().DL(anime.Anime)
//line season.qtpl:40
qw422016.N().S(`</a></td> <td>`)
//line season.qtpl:41
qw422016.N().FPrec(anime.Score, 2)
//line season.qtpl:41
qw422016.N().S(`</td> <td><strong>`)
//line season.qtpl:42
qw422016.E().S(anime.Title)
//line season.qtpl:42
qw422016.N().S(`</strong></td> </tr> `)
//line season.qtpl:44
}
//line season.qtpl:44
qw422016.N().S(` </table> <h2>MovieManager Charts</h2> <table> <tr> <th>MMID</th> <th>MALID</th> <th>USER</th> <th>SCORE</th> <th>TITLE</th> </tr> `)
//line season.qtpl:55
for _, chart := range charts {
//line season.qtpl:55
qw422016.N().S(` <tr> <td><a href="https://movies.hanami.family/movie/`)
//line season.qtpl:57
qw422016.N().D(chart.MmId)
//line season.qtpl:57
qw422016.N().S(`" target="_blank" rel="noopener noreferrer">`)
//line season.qtpl:57
qw422016.N().D(chart.MmId)
//line season.qtpl:57
qw422016.N().S(`</a></td> <td><a href="https://myanimelist.net/anime/`)
//line season.qtpl:58
qw422016.N().DL(chart.Anime)
//line season.qtpl:58
qw422016.N().S(`" target="_blank" rel="noopener noreferrer">`)
//line season.qtpl:58
qw422016.N().DL(chart.Anime)
//line season.qtpl:58
qw422016.N().S(`</a></td> <td>`)
//line season.qtpl:59
qw422016.N().D(chart.UserCount)
//line season.qtpl:59
qw422016.N().S(`</td> <td><strong>`)
//line season.qtpl:60
qw422016.N().FPrec(chart.AvgScore, 2)
//line season.qtpl:60
qw422016.N().S(`</strong></td> <td><strong>`)
//line season.qtpl:61
qw422016.E().S(chart.Title)
//line season.qtpl:61
qw422016.N().S(`</strong></td> </tr> `)
//line season.qtpl:63
}
//line season.qtpl:63
qw422016.N().S(` </table> <h2>MovieManager Oracle</h2> <table> <tr> <th>MMID</th> <th>MALID</th> <th>SCORE</th> <th>TITLE</th> </tr> `)
//line season.qtpl:73
for _, oracle := range oracles {
//line season.qtpl:73
qw422016.N().S(` <tr> <td><a href="https://movies.hanami.family/movie/`)
//line season.qtpl:75
qw422016.N().D(oracle.Id)
//line season.qtpl:75
qw422016.N().S(`" target="_blank" rel="noopener noreferrer">`)
//line season.qtpl:75
qw422016.N().D(oracle.Id)
//line season.qtpl:75
qw422016.N().S(`</a></td> <td>`)
//line season.qtpl:76
qw422016.N().DL(oracle.Anime)
//line season.qtpl:76
qw422016.N().S(`</td> <td>`)
//line season.qtpl:77
qw422016.N().D(oracle.AvgScore)
//line season.qtpl:77
qw422016.N().S(`</td> <td><strong>`)
//line season.qtpl:78
qw422016.E().S(oracle.Title)
//line season.qtpl:78
qw422016.N().S(`</strong></td> </tr> `)
//line season.qtpl:80
}
//line season.qtpl:80
qw422016.N().S(` </table> </body> </html> `)
//line season.qtpl:84
qw422016.N().S(`
`)
//line season.qtpl:85
}
//line season.qtpl:85
func WriteIndex(qq422016 qtio422016.Writer, animes []Anime, oracles []MmOracle, charts []MovieChart, log string) {
//line season.qtpl:85
qw422016 := qt422016.AcquireWriter(qq422016)
//line season.qtpl:85
StreamIndex(qw422016, animes, oracles, charts, log)
//line season.qtpl:85
qt422016.ReleaseWriter(qw422016)
//line season.qtpl:85
}
//line season.qtpl:85
func Index(animes []Anime, oracles []MmOracle, charts []MovieChart, log string) string {
//line season.qtpl:85
qb422016 := qt422016.AcquireByteBuffer()
//line season.qtpl:85
WriteIndex(qb422016, animes, oracles, charts, log)
//line season.qtpl:85
qs422016 := string(qb422016.B)
//line season.qtpl:85
qt422016.ReleaseByteBuffer(qb422016)
//line season.qtpl:85
return qs422016
//line season.qtpl:85
}