diff options
author | Elias Werberich <elias@werberich.de> | 2019-04-01 12:07:22 +0300 |
---|---|---|
committer | Elias Werberich <elias@werberich.de> | 2019-04-01 12:07:22 +0300 |
commit | 83fb62d493013973cb90b611d7c741d612ab6caf (patch) | |
tree | 71db16755d1da6ead74f76ebb66bb45c5600040c /app | |
parent | afbc827465e6fc0e4eec1308e34637bcd317eb52 (diff) |
Don't sanitize project names on project members page
Diffstat (limited to 'app')
-rw-r--r-- | app/views/projects/project_members/_groups.html.haml | 2 | ||||
-rw-r--r-- | app/views/projects/project_members/_team.html.haml | 2 | ||||
-rw-r--r-- | app/views/projects/project_members/index.html.haml | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/app/views/projects/project_members/_groups.html.haml b/app/views/projects/project_members/_groups.html.haml index b5d397e3065..00321014f91 100644 --- a/app/views/projects/project_members/_groups.html.haml +++ b/app/views/projects/project_members/_groups.html.haml @@ -1,6 +1,6 @@ .card.project-members-groups .card-header - = _("Groups with access to <strong>%{project_name}</strong>").html_safe % { project_name: sanitize_project_name(@project.name) } + = _("Groups with access to <strong>%{project_name}</strong>").html_safe % { project_name: sanitize(@project.name, tags: []) } %span.badge.badge-pill= group_links.size %ul.content-list.members-list = render partial: 'shared/members/group', collection: group_links, as: :group_link diff --git a/app/views/projects/project_members/_team.html.haml b/app/views/projects/project_members/_team.html.haml index e0dd386fc5d..f220299ec30 100644 --- a/app/views/projects/project_members/_team.html.haml +++ b/app/views/projects/project_members/_team.html.haml @@ -4,7 +4,7 @@ .card .card-header.flex-project-members-panel %span.flex-project-title - = _("Members of <strong>%{project_name}</strong>").html_safe % { project_name: sanitize_project_name(project.name) } + = _("Members of <strong>%{project_name}</strong>").html_safe % { project_name: sanitize(project.name, tags: []) } %span.badge.badge-pill= members.total_count = form_tag project_project_members_path(project), method: :get, class: 'form-inline member-search-form flex-project-members-form' do .form-group diff --git a/app/views/projects/project_members/index.html.haml b/app/views/projects/project_members/index.html.haml index 242ff91f539..8373903443e 100644 --- a/app/views/projects/project_members/index.html.haml +++ b/app/views/projects/project_members/index.html.haml @@ -6,7 +6,7 @@ = _("Project members") - if can?(current_user, :admin_project_member, @project) %p - = _("You can invite a new member to <strong>%{project_name}</strong> or invite another group.").html_safe % { project_name: sanitize_project_name(@project.name) } + = _("You can invite a new member to <strong>%{project_name}</strong> or invite another group.").html_safe % { project_name: sanitize(@project.name, tags: []) } - else %p = _("Members can be added by project <i>Maintainers</i> or <i>Owners</i>").html_safe |