15 lines
600 B
Plaintext
Raw Normal View History

2017-11-22 10:51:59 +00:00
component Calendar(days []*utils.CalendarDay, user *arn.User)
2017-11-22 11:39:36 +00:00
h1.mountable Calendar
2017-11-22 10:51:59 +00:00
.week
each day in days
.weekday
2017-11-22 11:39:36 +00:00
h3.weekday-name.mountable(data-mountable-type=day.Name)= day.Name
2017-11-22 11:04:04 +00:00
.calendar-entries
2017-11-22 10:51:59 +00:00
each entry in day.Entries
2017-11-22 11:48:18 +00:00
div(data-mountable-type=day.Name, class=entry.Class)
2017-11-22 11:20:57 +00:00
a.ajax(href=entry.Anime.Link())
.calendar-entry-title= entry.Anime.Title.ByUser(user)
.calendar-entry-info
.calendar-entry-time.utc-date-absolute(data-date=entry.Episode.AiringDate.Start)
.calendar-entry-episode= "Ep: " + strconv.Itoa(entry.Episode.Number)