diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a100ff..91dd472 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] ### Changed -- Refresh shows when reloading the WebUI homepage. +- ([#50](https://github.com/danstis/Plex-Sync/issues/50)) Refresh shows when reloading the WebUI homepage. +- ([#55](https://github.com/danstis/Plex-Sync/issues/55)) Ignore pre-release tags on header of web interface. +- ([#54](https://github.com/danstis/Plex-Sync/issues/54)) Move full version number into the settings page. ## [v0.3.3] ### Added diff --git a/plex/version.go b/plex/version.go index 3ac7230..c4a20d4 100644 --- a/plex/version.go +++ b/plex/version.go @@ -1,4 +1,4 @@ package plex // Version contains the version of the app. -const Version = "0.3.5-refresh-shows-onreload-homepage.4" +const Version = "0.3.5-version-updates.7" diff --git a/webui/handlers.go b/webui/handlers.go index e39552d..60c53d2 100644 --- a/webui/handlers.go +++ b/webui/handlers.go @@ -7,6 +7,7 @@ import ( "net/http" "os" "path" + "strings" "github.com/gorilla/mux" @@ -15,23 +16,21 @@ import ( // PageData defines a struct to store the current version information. type PageData struct { - Version string - Shows []string + Version string + FullVersion string + Shows []string } var ss, _ = plex.SelectedShows() var v = PageData{ - Version: plex.Version, - Shows: ss, + Version: strings.Split(plex.Version, "-")[0], + FullVersion: plex.Version, + Shows: ss, } // refreshShows updates the PageData with the latest shows. func refreshShows() { - ss, _ = plex.SelectedShows() - v = PageData{ - Version: plex.Version, - Shows: ss, - } + v.Shows, _ = plex.SelectedShows() } // RootHandler returns the default page. diff --git a/webui/templates/settings/settings.html b/webui/templates/settings/settings.html index 42604c2..c666909 100644 --- a/webui/templates/settings/settings.html +++ b/webui/templates/settings/settings.html @@ -64,6 +64,10 @@

Settings

  • Remove Cached Token
  • + +
  • + Plex-Sync v{{.FullVersion}} +