X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/d0930bfe4226ba361a5b1087b01946130f8282fd..2ff5dd54e5daf4dfed3dfd07d161681fc87fe8ff:/apps/workbench/app/views/users/profile.html.erb?ds=sidebyside diff --git a/apps/workbench/app/views/users/profile.html.erb b/apps/workbench/app/views/users/profile.html.erb index a95f14da39..caa22bda11 100644 --- a/apps/workbench/app/views/users/profile.html.erb +++ b/apps/workbench/app/views/users/profile.html.erb @@ -1 +1,118 @@ -<%= render :partial => 'users/profile' %> +<%# Copyright (C) The Arvados Authors. All rights reserved. + +SPDX-License-Identifier: AGPL-3.0 %> + +<% + profile_config = [] + Rails.configuration.Workbench.UserProfileFormFields.each do |k, v| + r = v.dup + r["Key"] = k + profile_config << r + end + profile_config.sort_by! { |v| v["Position"] } + + current_user_profile = current_user.prefs[:profile] + show_save_button = false + + profile_message = Rails.configuration.Workbench.UserProfileFormMessage +%> + +
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 %> +<%=raw(profile_message)%>
+<%=current_user.email%>
+<%=current_user.first_name%>
+<%=current_user.last_name%>
+<%=current_user.andand.identity_url%>
+