<% nb_other_projects = 0 nb_visible_projects = 0 issue_projects = @issue.projects allowed_projects = [@issue.project] | @issue.allowed_target_projects %> <% issue_projects.each do |project| %> <% if allowed_projects.include?(project) %> <%= content_tag("span", link_to(project.name.gsub(/ /," ").html_safe, project_issues_path(project)), class: "list_projects_names") %> <% nb_visible_projects += 1 %> <% else %> <% nb_other_projects += 1 %> <% end %> <% end %> <% if nb_other_projects > 0 %> <% if nb_visible_projects>0 %> <%= l("support.array.sentence_connector") %> <%= nb_other_projects %> <%= nb_other_projects>1 ? l("other").pluralize : l("other") %> <% else %> <%= nb_other_projects %> <% end %> <%= nb_other_projects>1 ? l("project").pluralize : l("project") %> <%= l('you_are_not_a_member') %> <% end %>