Show the user a version string which identifies the version of the client code they are running. We don't need to know what version the database or server is running, so any kind of collection or method approach would fail because it will automatically update all clients. We want something hard coded into the client code, yet generated dynamically at build (deploy) time.
We create a template called version
which we include in a remote corner of the UI. As part of our deployment process we put the last git commit hash into that file.