4465: add API/Workbench Github links to help modal
[arvados.git] / apps / workbench / app / helpers / version_helper.rb
1 module VersionHelper
2   include ArvadosApiClientHelper
3
4   def api_version()
5     arvados_api_client.discovery[:source_version]
6   end
7
8   def wb_version()
9     Rails.configuration.source_version
10   end
11
12   def wb_version_text()
13     wbv = wb_version
14     wbv += Rails.configuration.local_modified if Rails.configuration.local_modified
15     wbv
16   end
17 end