Fix markup

This commit is contained in:
Anton 2023-01-18 14:18:06 +01:00
parent 9c488d5a0c
commit 2e8a02f79f
3 changed files with 3 additions and 9 deletions

View file

@ -5,7 +5,7 @@
</div>
<div>
<%= t('access_permissions.everyone_else', team_name: project.team.name) %>
<%= render 'access_permissions/partials/public_members_dropdown', team: project.team, project: project %>
<%= render 'access_permissions/partials/public_members_dropdown', team: project.team, assignable: project %>
<br>
<small class="text-muted">
<%= project.default_public_user_role.name %>

View file

@ -5,14 +5,8 @@
<div class="title">
<%= t('.title', team: team.name) %>
</div>
<%
users_excluded = if defined? project
project.manually_assigned_users.select(:id)
elsif protocol
protocol.manually_assigned_users.select(:id)
end
%>
<% team.users.order(full_name: :asc).where.not(id: users_excluded).each do |user| %>
<% users_excluded_id = assignable.manually_assigned_users.select(:id) %>
<% team.users.order(full_name: :asc).where.not(id: users_excluded_id).each do |user| %>
<div class="name">
<%= user.full_name %>
</div>