@components.Container() {
if data.Error != "" {
@components.ErrorToast(data.Error)
} else {
Recently Added -
{ strconv.FormatInt(data.TotalImages, 10) } Images
@recentRangeInput(c)
@nsfwToggle(c, data)
if data.TotalImages == 0 {
There are no recently added images in the current time range.
}
for _, recently := range data.RecentlyAddedImages {
{ recently.Device.Name }
for _, subreddit := range recently.Subreddits {
{ subreddit.Subreddit.Name } - { strconv.Itoa(len(subreddit.Images)) } images
@RecentlyAddedImageList(subreddit.Images, 0)
}
}
Subreddits
for _, subreddit := range data.SubredditsList.Data {
{ subreddit.Name } -
@utils.RelativeTimeNode(subreddit.Name, utils.NextScheduleTime(subreddit.Schedule).Unix())
}
}
}
}
templ recentRangeInput(c *views.Context) {