X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/27697133a18371d692d69569659dd522e7b0fbdd..4c8559157a16bf3d2781714fdec0275fb7f53ac6:/apps/workbench/app/views/users/profile.html.erb diff --git a/apps/workbench/app/views/users/profile.html.erb b/apps/workbench/app/views/users/profile.html.erb index aab8843930..af7a71dc72 100644 --- a/apps/workbench/app/views/users/profile.html.erb +++ b/apps/workbench/app/views/users/profile.html.erb @@ -16,7 +16,11 @@
<% if !missing_required_profile? && params[:offer_return_to] %>
-

Thank you for filling in your profile. <%= link_to 'Back to work!', params[:offer_return_to], class: 'btn btn-sm btn-primary' %>

+ <% if current_user.prefs[:getting_started_shown] %> +

Thank you for filling in your profile. <%= link_to 'Back to work!', params[:offer_return_to], class: 'btn btn-sm btn-primary' %>

+ <% else %> +

Thank you for filling in your profile. <%= link_to 'Get started', params[:offer_return_to], class: 'btn btn-sm btn-primary' %>

+ <% end %>
<% else %>
@@ -28,19 +32,19 @@ <%= hidden_field_tag :offer_return_to, params[:offer_return_to] %> <%= hidden_field_tag :return_to, profile_user_path(current_user.uuid, offer_return_to: params[:offer_return_to]) %>
- +

<%=current_user.email%>

- +

<%=current_user.first_name%>

- +

<%=current_user.last_name%>

@@ -67,7 +71,7 @@ <% if entry['type'] == 'select' %>
- <% entry['options'].each do |option| %> <% end %> @@ -75,13 +79,20 @@
<% else %>
- +
<% end %>
<% end %> <% end %> + <%# If the user has other prefs, we need to preserve them %> + <% current_user.prefs.each do |key, value| %> + <% if key != :profile %> + + <% end %> + <% end %> + <% if show_save_button %>