Skip to content

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

Add groups to user profile

Oliver Güntherfcb000a39305
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb
index 6a39debe734..a90c6d7217f 100644
--- a/app/views/users/show.html.erb
+++ b/app/views/users/show.html.erb
@@ -30,8 +30,9 @@ See COPYRIGHT and LICENSE files for more details.
<%= call_hook :users_show_head %>
<% end %>
<% local_assigns[:additional_breadcrumb] = @user.name %>
-<% html_title t(:label_administration), t(:label_user_plural) -%>
-<%= breadcrumb_toolbar "#{avatar @user} #{h(@user.name)}".html_safe do %>
+<% html_title t(:label_user_plural) -%>
+
+<%= breadcrumb_toolbar do %>
<% if User.current.allowed_globally?(:manage_user) %>
<li class="toolbar-item">
<%= link_to edit_user_path(@user), class: 'button', accesskey: accesskey(:edit) do %>
diff --git a/spec/features/users/show_spec.rb b/spec/features/users/show_spec.rb
index 690e85208ba..4bc5fa21771 100644
--- a/spec/features/users/show_spec.rb
+++ b/spec/features/users/show_spec.rb
@@ -64,7 +64,7 @@ RSpec.describe "index users", :js, :with_cuprite do
it "does not show the group" do
visit user_path(user)
- expect(page).to have_no_text group.name
+ expect(page).not_to have_text group.name
end
end
end