Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-05-16 15:08:01 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-05-16 15:08:01 +0300
commit27dff2a98a6e2cd9e06c37a58f9fc471b9fcd723 (patch)
treeb9b35838d3ff5fd90ddccc169feb9b45cef73cfe
parent334fbbb5d3822acc996a59e492fdace629cf7322 (diff)
Add latest changes from gitlab-org/gitlab@master
-rw-r--r--app/views/layouts/nav/sidebar/_group.html.haml2
-rw-r--r--locale/gitlab.pot6
-rw-r--r--spec/features/groups/navbar_spec.rb35
3 files changed, 43 insertions, 0 deletions
diff --git a/app/views/layouts/nav/sidebar/_group.html.haml b/app/views/layouts/nav/sidebar/_group.html.haml
index f63a7b3a664..92b6174795b 100644
--- a/app/views/layouts/nav/sidebar/_group.html.haml
+++ b/app/views/layouts/nav/sidebar/_group.html.haml
@@ -102,6 +102,8 @@
= render_if_exists "layouts/nav/ee/security_link" # EE-specific
+ = render_if_exists "layouts/nav/ee/push_rules_link" # EE-specific
+
- if group_sidebar_link?(:kubernetes)
= nav_link(controller: [:clusters]) do
= link_to group_clusters_path(@group) do
diff --git a/locale/gitlab.pot b/locale/gitlab.pot
index 980ef7ef1f3..e6d37a40c14 100644
--- a/locale/gitlab.pot
+++ b/locale/gitlab.pot
@@ -15703,6 +15703,9 @@ msgstr ""
msgid "Point to any links you like: documentation, built binaries, or other related materials. These can be internal or external links from your GitLab instance. Duplicate URLs are not allowed."
msgstr ""
+msgid "Pre-defined push rules."
+msgstr ""
+
msgid "Preferences"
msgstr ""
@@ -18277,6 +18280,9 @@ msgstr ""
msgid "Rook"
msgstr ""
+msgid "Rules that define what git pushes are accepted for a project in this group. All newly created projects in this group will use these settings."
+msgstr ""
+
msgid "Rules that define what git pushes are accepted for a project. All newly created projects will use these settings."
msgstr ""
diff --git a/spec/features/groups/navbar_spec.rb b/spec/features/groups/navbar_spec.rb
index 9e53a543a26..fd5b4ec9345 100644
--- a/spec/features/groups/navbar_spec.rb
+++ b/spec/features/groups/navbar_spec.rb
@@ -10,7 +10,42 @@ describe 'Group navbar' do
let_it_be(:user) { create(:user) }
let_it_be(:group) { create(:group) }
+ let(:structure) do
+ [
+ {
+ nav_item: _('Group overview'),
+ nav_sub_items: [
+ _('Details'),
+ _('Activity')
+ ]
+ },
+ {
+ nav_item: _('Issues'),
+ nav_sub_items: [
+ _('List'),
+ _('Board'),
+ _('Labels'),
+ _('Milestones')
+ ]
+ },
+ {
+ nav_item: _('Merge Requests'),
+ nav_sub_items: []
+ },
+ {
+ nav_item: _('Kubernetes'),
+ nav_sub_items: []
+ },
+ (analytics_nav_item if Gitlab.ee?),
+ {
+ nav_item: _('Members'),
+ nav_sub_items: []
+ }
+ ]
+ end
+
before do
+ stub_feature_flags(group_push_rules: false)
group.add_maintainer(user)
sign_in(user)
end