Merge branch '3193-manage-account' of git.curoverse.com:arvados into 3193-manage...
[arvados.git] / apps / workbench / app / views / users / _manage_current_token.html.erb
index b87d80acd76a5d278c03e0654e0fec67a39bc3b0..246141040f06a6a402d6d81c290ec39a74013e47 100644 (file)
@@ -1,11 +1,9 @@
-### Pasting the following lines at a shell prompt will allow Arvados SDKs</br>
-### to authenticate to your account, <%= current_user.email %></br></br>
-read ARVADOS_API_TOKEN &lt;&lt;EOF</br>
-<%= Thread.current[:arvados_api_token] %></br>
-EOF</br>
-export ARVADOS_API_TOKEN ARVADOS_API_HOST=<%= current_api_host %></br>
+<p>Paste the following lines at a shell prompt to set up the necessary environment for Arvados SDKs to authenticate to your account, <b><%= current_user.email %></b></p>
+
+<pre>export ARVADOS_API_TOKEN=<%= Thread.current[:arvados_api_token] %>
+export ARVADOS_API_HOST=<%= current_api_host %>
 <% if Rails.configuration.arvados_insecure_https %>
-export ARVADOS_API_HOST_INSECURE=true</br>
+export ARVADOS_API_HOST_INSECURE=true
 <% else %>
-unset ARVADOS_API_HOST_INSECURE</br>
-<% end %>
+unset ARVADOS_API_HOST_INSECURE
+<% end %></pre>