OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Change display of attributes to match figma
Oliver Günther454b78599a55
diff --git a/app/components/users/profile/attributes_component.html.erb b/app/components/users/profile/attributes_component.html.erbindex c5440e83a35..b8ac21cadab 100644--- a/app/components/users/profile/attributes_component.html.erb+++ b/app/components/users/profile/attributes_component.html.erb@@ -14,28 +14,34 @@scheme: :invisible,tag: :a,"aria-label": t(:label_manage),- href: User.current == @user? my_account_path : edit_user_path(@user)+ href: User.current == @user ? my_account_path : edit_user_path(@user)))endendendend- details_container.with_row(mt: 2) do- if @user.pref.can_expose_mail?- concat "#{User.human_attribute_name(:mail)}: "- concat mail_to(escape_javascript(@user.mail), nil, encode: 'javascript')+ if @user.pref.can_expose_mail?+ details_container.with_row(mt: 2, font_weight: :bold) do+ User.human_attribute_name(:mail)+ end++ details_container.with_row do+ mail_to(escape_javascript(@user.mail), nil, encode: 'javascript')endendvisible_custom_fields.each do |custom_field|- details_container.with_row(test_selector: "user-custom-field") do- concat "#{custom_field.name}: "+ details_container.with_row(mt: 2, font_weight: :bold, test_selector: "user-custom-field") do+ custom_field.name+ end++ details_container.with_row dovalue = @user.formatted_custom_value_for(custom_field)if value.is_a?(Array)- concat safe_join(value, ", ")+ safe_join(value, ", ")else- concat value+ valueendendend