diff --git a/admin.go b/admin.go index 7be67e9..89621ae 100644 --- a/admin.go +++ b/admin.go @@ -586,6 +586,7 @@ func handleViewAdminUpdates(app *App, u *User, w http.ResponseWriter, r *http.Re LastChecked string LastChecked8601 string LatestVersion string + LatestReleaseURL string LatestReleaseNotesURL string UpdateAvailable bool }{ @@ -595,6 +596,7 @@ func handleViewAdminUpdates(app *App, u *User, w http.ResponseWriter, r *http.Re p.LastChecked = app.updates.lastCheck.Format("January 2, 2006, 3:04 PM") p.LastChecked8601 = app.updates.lastCheck.Format("2006-01-02T15:04:05Z") p.LatestVersion = app.updates.LatestVersion() + p.LatestReleaseURL = app.updates.ReleaseURL() p.LatestReleaseNotesURL = app.updates.ReleaseNotesURL() p.UpdateAvailable = app.updates.AreAvailable() } diff --git a/less/core.less b/less/core.less index fe8a28d..0e5798b 100644 --- a/less/core.less +++ b/less/core.less @@ -1345,6 +1345,11 @@ div.row { } } +.check { + font-size: 1.125em; + color: #71D571; +} + @media all and (max-width: 450px) { body#post { header { diff --git a/templates/user/admin/app-updates.tmpl b/templates/user/admin/app-updates.tmpl index 5d91230..c7d9913 100644 --- a/templates/user/admin/app-updates.tmpl +++ b/templates/user/admin/app-updates.tmpl @@ -2,20 +2,24 @@ {{template "header" .}}
WriteFreely is up to date.
- {{else}} -WriteFreely {{.LatestVersion}} is available.
-Last checked at: . Check now.
+✓ WriteFreely is up to date.
+Installed version: {{.Version}} (release notes).
+ {{else}} +A new version of WriteFreely is available! Get {{.LatestVersion}}
++ Read the release notes for details on features, bug fixes, and notes on upgrading from your current version, {{.Version}}. +
+ {{end}} +Last checked: . Check now.