X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/aa2adbcaa06c4f5dc7a6e54f3d9a5148b20fbbb1..a4acb3ae95b2fc7f4b5f1e174c910a54cc6681da:/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..4fefa821ca 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%>

@@ -82,6 +86,13 @@ <% 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 %>