component Calendar(days []*utils.CalendarDay, user *arn.User) h1.mountable Calendar .corner-buttons if user != nil button.action(data-trigger="click", data-action="calendarShowAddedAnimeOnly", data-api="/api/settings/" + user.ID, title="Show anime in my collection") RawIcon("eye") else button.action(data-trigger="click", data-action="calendarShowAddedAnimeOnly", title="Show anime in my collection") RawIcon("eye") .week each day in days div(class=day.Class) h3.weekday-name.mountable(data-mountable-type=day.Name)= day.Name .calendar-entries each entry in day.Entries CalendarEntry(day, entry, user) component CalendarEntry(day *utils.CalendarDay, entry *utils.CalendarEntry, user *arn.User) if user!= nil && user.Settings().CalendarSettings.ShowUserList == true a.calendar-entry.mountable(href=entry.Anime.Link(), data-mountable-type=day.Name, data-added=entry.Added) img.calendar-entry-image.lazy(data-src=entry.Anime.ImageLink("small"), data-webp="true", data-color=entry.Anime.AverageColor(), alt=entry.Anime.Title.ByUser(user)) .calendar-entry-info .calendar-entry-title= entry.Anime.Title.ByUser(user) .calendar-entry-time-and-episode .calendar-entry-time.utc-date-absolute(data-date=entry.Episode.AiringDate.Start) .calendar-entry-episode= "Ep: " + strconv.Itoa(entry.Episode.Number) else a.calendar-entry.hidden.mountable(href=entry.Anime.Link(), data-mountable-type=day.Name, data-added=entry.Added) img.calendar-entry-image.lazy(data-src=entry.Anime.ImageLink("small"), data-webp="true", data-color=entry.Anime.AverageColor(), alt=entry.Anime.Title.ByUser(user)) .calendar-entry-info .calendar-entry-title= entry.Anime.Title.ByUser(user) .calendar-entry-time-and-episode .calendar-entry-time.utc-date-absolute(data-date=entry.Episode.AiringDate.Start) .calendar-entry-episode= "Ep: " + strconv.Itoa(entry.Episode.Number)