21 lines
975 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
2017-12-03 18:08:05 +00:00
.corner-buttons-hide-on-mobile
button.action(data-trigger="click", data-action="calendarShowAddedAnimeOnly", title="Show anime in my collection")
RawIcon("eye")
2017-11-22 10:51:59 +00:00
.week
each day in days
2017-12-03 18:08:05 +00:00
div(class=day.Class)
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-12-03 18:08:05 +00:00
.calendar-entry.mountable(data-mountable-type=day.Name, data-added=entry.Added)
2017-12-03 17:52:34 +00:00
a.ajax(href=entry.Anime.Link())
img.calendar-entry-image.lazy(data-src=entry.Anime.Image("large"), data-webp="true", alt=entry.Anime.Title.ByUser(user))
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)