X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/51ab8fada99e0d5dad24b7e905c494850dcd1fe1..ff3e4c60ffa088479cd0a97b314b4af06b0d67ba:/apps/workbench/app/views/users/profile.html.erb?ds=inline diff --git a/apps/workbench/app/views/users/profile.html.erb b/apps/workbench/app/views/users/profile.html.erb index 906ca48b75..45aea01b95 100644 --- a/apps/workbench/app/views/users/profile.html.erb +++ b/apps/workbench/app/views/users/profile.html.erb @@ -3,26 +3,7 @@ current_user_profile = current_user.prefs[:profile] show_save_button = false - profile_message = 'You can manage your profile using this page. Any feilds in red are required and missing. - Please fill in those fields before you can accesse Arvados Workbench.' - - missing_required_profile = false - profile_config.kind_of?(Array) && profile_config.andand.each do |entry| - if entry['message'] - profile_message = entry['message'] - else # key - if !current_user_profile || - !current_user_profile[entry['key'].to_sym] || - current_user_profile[entry['key'].to_sym].empty? - missing_required_profile = true - end - end - end - - profile_url = '/users/'+current_user.uuid+'/profile' - target = request.url.partition('?target=')[-1] - target = request.url if target.empty? - return_to_url = (request.url.ends_with? profile_url) ? profile_url : profile_url+'?target='+target + profile_message = Rails.configuration.user_profile_form_message %>
Thank you for filling in your profile. If you are done updating your profile, - you can now access Arvados Workbench by clicking on this button. -
- + <% 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' %>
<%=profile_message%>
+<%=raw(profile_message)%>
<%=current_user.email%>
<%=current_user.first_name%>
<%=current_user.last_name%>
<%=current_user.andand.identity_url%>