Merge branch '8442-crunch-run-enable-net' refs #8442
[arvados.git] / apps / workbench / app / helpers / version_helper.rb
1 module VersionHelper
2   # Get the source_version given in the API server's discovery
3   # document.
4   def api_source_version
5     arvados_api_client.discovery[:source_version]
6   end
7
8   # URL for browsing source code for the given version.
9   def version_link_target version
10     "https://arvados.org/projects/arvados/repository/changes?rev=#{version.sub(/-.*/, "")}"
11   end
12 end