|
|
@ -585,7 +585,7 @@ func handleViewAdminUpdates(app *App, u *User, w http.ResponseWriter, r *http.Re |
|
|
|
*UserPage |
|
|
|
*UserPage |
|
|
|
LastChecked string |
|
|
|
LastChecked string |
|
|
|
LatestVersion string |
|
|
|
LatestVersion string |
|
|
|
LatestReleaseURL string |
|
|
|
LatestReleaseNotesURL string |
|
|
|
UpdateAvailable bool |
|
|
|
UpdateAvailable bool |
|
|
|
}{ |
|
|
|
}{ |
|
|
|
UserPage: NewUserPage(app, r, u, "Updates", nil), |
|
|
|
UserPage: NewUserPage(app, r, u, "Updates", nil), |
|
|
@ -593,7 +593,7 @@ func handleViewAdminUpdates(app *App, u *User, w http.ResponseWriter, r *http.Re |
|
|
|
if app.cfg.App.UpdateChecks { |
|
|
|
if app.cfg.App.UpdateChecks { |
|
|
|
p.LastChecked = app.updates.lastCheck.Format("January 2, 2006, 3:04 PM") |
|
|
|
p.LastChecked = app.updates.lastCheck.Format("January 2, 2006, 3:04 PM") |
|
|
|
p.LatestVersion = app.updates.LatestVersion() |
|
|
|
p.LatestVersion = app.updates.LatestVersion() |
|
|
|
p.LatestReleaseURL = app.updates.ReleaseURL() |
|
|
|
p.LatestReleaseNotesURL = app.updates.ReleaseNotesURL() |
|
|
|
p.UpdateAvailable = app.updates.AreAvailable() |
|
|
|
p.UpdateAvailable = app.updates.AreAvailable() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|