projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'main' into 18842-arv-mount-disk-config
[arvados.git]
/
apps
/
workbench
/
app
/
helpers
/
version_helper.rb
diff --git
a/apps/workbench/app/helpers/version_helper.rb
b/apps/workbench/app/helpers/version_helper.rb
index 5c15986601e1b9b69d772d5391b88146fbec33c9..d11071272b28728038710969543c5ec908d4e958 100644
(file)
--- a/
apps/workbench/app/helpers/version_helper.rb
+++ b/
apps/workbench/app/helpers/version_helper.rb
@@
-1,3
+1,7
@@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
module VersionHelper
# Get the source_version given in the API server's discovery
# document.
module VersionHelper
# Get the source_version given in the API server's discovery
# document.
@@
-5,8
+9,14
@@
module VersionHelper
arvados_api_client.discovery[:source_version]
end
arvados_api_client.discovery[:source_version]
end
+ # Get the packageVersion given in the API server's discovery
+ # document.
+ def api_package_version
+ arvados_api_client.discovery[:packageVersion]
+ end
+
# URL for browsing source code for the given version.
def version_link_target version
# URL for browsing source code for the given version.
def version_link_target version
- "https://arvados.org/projects/arvados/repository/changes?rev=#{version.sub(/-.*/, "")}"
+ "https://
dev.
arvados.org/projects/arvados/repository/changes?rev=#{version.sub(/-.*/, "")}"
end
end
end
end