diff --git a/server/routes/routes.go b/server/routes/routes.go index 8ef2d2a..a4edc4a 100644 --- a/server/routes/routes.go +++ b/server/routes/routes.go @@ -90,6 +90,6 @@ func (routes *Routes) registerWWWRoutes(router chi.Router) { r.Get("/devices/details/{slug}", routes.PageDeviceDetails) r.Get("/devices/edit/{slug}", routes.PageDevicesEdit) r.Post("/devices/edit/{slug}", routes.DevicesUpdateHTMX) - r.Get("/schedules", routes.PageScheduleHistory) + r.Get("/history", routes.PageScheduleHistory) }) } diff --git a/views/components/navigation.templ b/views/components/navigation.templ index 425b95e..32220fa 100644 --- a/views/components/navigation.templ +++ b/views/components/navigation.templ @@ -87,7 +87,7 @@ templ navList(c *views.Context) { @createLink(c, "/config", "Config") @createLink(c, "/devices", "Devices") @createLink(c, "/subreddits", "Subreddits") - @createLink(c, "/schedules", "Schedules") + @createLink(c, "/history", "History")
@createLink(c, "/about", "About") diff --git a/views/schedulehistoriesview/schedulesview.templ b/views/schedulehistoriesview/view.templ similarity index 94% rename from views/schedulehistoriesview/schedulesview.templ rename to views/schedulehistoriesview/view.templ index be3ffc5..7ff51ab 100644 --- a/views/schedulehistoriesview/schedulesview.templ +++ b/views/schedulehistoriesview/view.templ @@ -23,8 +23,8 @@ templ ScheduleHistoriesContent(c *views.Context, data Data) { if data.Error != "" { @components.ErrorToast(data.Error) } else { -

Schedule History

-
+

Schedule History ({ time.Local.String() })

+
if data.Total < 1 {

There are no history schedules to be found. You can populate this page's history by manually trigger a Subreddit { "for" } downloading.

} @@ -33,12 +33,12 @@ templ ScheduleHistoriesContent(c *views.Context, data Data) { for _, scheduleGroup := range data.splitByDays() {

{ scheduleGroup.Day.Format("Monday, _2 January 2006") }

-