package templates
import "mal/internal/jikan"
import "mal/internal/shared/ui"
import "fmt"
import "strings"
templ Schedule() {
@Layout("mal - schedule") {
Weekly schedule
Airing times in JST
@ui.LoadingIndicator("Loading schedule")
}
}
templ ScheduleDay(day string, animes []jikan.Anime) {
{ anime.DisplayTitle() }
if anime.Broadcast.Time != "" {
{ anime.Broadcast.Time }
}
if anime.Type != "" {
{ anime.Type }
}
if anime.Episodes > 0 {
{ fmt.Sprintf("%d ep", anime.Episodes) }
}
if anime.Score > 0 {
★ { fmt.Sprintf("%.1f", anime.Score) }
}
}
}