From ad28c03c2a5432da44b1d68900f9578ab411356d Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Sat, 25 Apr 2020 00:10:07 +0000 Subject: [PATCH] Add latest changes from gitlab-org/gitlab@master --- app/views/projects/commits/_commits.html.haml | 9 ++++----- ...5700-fix-incorrect-commits-number-in-commits-list.yml | 5 +++++ doc/user/project/deploy_tokens/index.md | 3 +++ locale/gitlab.pot | 6 ++++++ 4 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 changelogs/unreleased/215700-fix-incorrect-commits-number-in-commits-list.yml diff --git a/app/views/projects/commits/_commits.html.haml b/app/views/projects/commits/_commits.html.haml index 2e5953bf0a6..e413bd78789 100644 --- a/app/views/projects/commits/_commits.html.haml +++ b/app/views/projects/commits/_commits.html.haml @@ -4,22 +4,21 @@ - commits = @commits - hidden = @hidden_commit_count -- commits_count = @commits.size -- commits.chunk { |c| c.committed_date.in_time_zone.to_date }.each do |day, commits| +- commits.chunk { |c| c.committed_date.in_time_zone.to_date }.each do |day, daily_commits| %li.commit-header.js-commit-header{ data: { day: day } } %span.day= l(day, format: '%d %b, %Y') - %span.commits-count= n_("%d commit", "%d commits", commits_count) % commits_count + %span.commits-count= n_("%d commit", "%d commits", daily_commits.size) % daily_commits.size %li.commits-row{ data: { day: day } } %ul.content-list.commit-list.flex-list - = render partial: 'projects/commits/commit', collection: commits, locals: { project: project, ref: ref, merge_request: merge_request } + = render partial: 'projects/commits/commit', collection: daily_commits, locals: { project: project, ref: ref, merge_request: merge_request } - if hidden > 0 %li.alert.alert-warning = n_('%s additional commit has been omitted to prevent performance issues.', '%s additional commits have been omitted to prevent performance issues.', hidden) % number_with_delimiter(hidden) -- if commits_count == 0 +- if commits.size == 0 .mt-4.text-center .bold = _('Your search didn\'t match any commits.') diff --git a/changelogs/unreleased/215700-fix-incorrect-commits-number-in-commits-list.yml b/changelogs/unreleased/215700-fix-incorrect-commits-number-in-commits-list.yml new file mode 100644 index 00000000000..4da7a43050c --- /dev/null +++ b/changelogs/unreleased/215700-fix-incorrect-commits-number-in-commits-list.yml @@ -0,0 +1,5 @@ +--- +title: Fix incorrect commits number in commits list +merge_request: 30412 +author: +type: fixed diff --git a/doc/user/project/deploy_tokens/index.md b/doc/user/project/deploy_tokens/index.md index 3d3e8c97742..311e3ecc959 100644 --- a/doc/user/project/deploy_tokens/index.md +++ b/doc/user/project/deploy_tokens/index.md @@ -135,3 +135,6 @@ those variables: ```shell docker login -u $CI_DEPLOY_USER -p $CI_DEPLOY_PASSWORD $CI_REGISTRY ``` + +NOTE: **Note:** +The special handling for the `gitlab-deploy-token` deploy token is not currently implemented for group deploy tokens. For the deploy token to be available for CI/CD jobs, it must be created at the project level. See [this issue](https://gitlab.com/gitlab-org/gitlab/-/issues/214014) for details. diff --git a/locale/gitlab.pot b/locale/gitlab.pot index 2480b3427f8..3d530b429a6 100644 --- a/locale/gitlab.pot +++ b/locale/gitlab.pot @@ -19766,6 +19766,12 @@ msgstr "" msgid "StatusPage|Status page" msgstr "" +msgid "StatusPage|Status page URL" +msgstr "" + +msgid "StatusPage|Status page frontend documentation" +msgstr "" + msgid "StatusPage|To publish incidents to an external status page, GitLab will store a JSON file in your Amazon S3 account in a location accessible to your external status page service. Make sure to also set up %{docsLink}" msgstr ""