diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-17 15:10:12 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-17 15:10:12 +0300 |
commit | 4203215d542505bba491a01d637479934c8005d6 (patch) | |
tree | 000a956ac60247021ff8c36a1a17a1ea6ed1ff38 /app/helpers/projects_helper.rb | |
parent | 325318e2ddfcaedf0527053dd3c9bd62db547089 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers/projects_helper.rb')
-rw-r--r-- | app/helpers/projects_helper.rb | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb index cab7ee6bc6b..1ce4903f8df 100644 --- a/app/helpers/projects_helper.rb +++ b/app/helpers/projects_helper.rb @@ -184,9 +184,8 @@ module ProjectsHelper end def autodeploy_flash_notice(branch_name) - translation = _("Branch <strong>%{branch_name}</strong> was created. To set up auto deploy, choose a GitLab CI Yaml template and commit your changes. %{link_to_autodeploy_doc}") % - { branch_name: truncate(sanitize(branch_name)), link_to_autodeploy_doc: link_to_autodeploy_doc } - translation.html_safe + html_escape(_("Branch %{branch_name} was created. To set up auto deploy, choose a GitLab CI Yaml template and commit your changes. %{link_to_autodeploy_doc}")) % + { branch_name: tag.strong(truncate(sanitize(branch_name))), link_to_autodeploy_doc: link_to_autodeploy_doc } end def project_list_cache_key(project, pipeline_status: true) @@ -353,14 +352,14 @@ module ProjectsHelper description = if share_with_group && share_with_members - _("You can invite a new member to <strong>%{project_name}</strong> or invite another group.") + _("You can invite a new member to %{project_name} or invite another group.") elsif share_with_group - _("You can invite another group to <strong>%{project_name}</strong>.") + _("You can invite another group to %{project_name}.") elsif share_with_members - _("You can invite a new member to <strong>%{project_name}</strong>.") + _("You can invite a new member to %{project_name}.") end - description.html_safe % { project_name: project.name } + html_escape(description) % { project_name: tag.strong(project.name) } end def metrics_external_dashboard_url |