blob: 15bee31c5964f9cd620bfe2c0ecce7eb037b57c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
- return unless show_branch_rules_info?
= render Pajamas::AlertComponent.new(variant: :info,
title: s_("Branches|See all branch-related settings together with branch rules"),
alert_options: { class: 'js-branch-rules-info-callout gl-mb-6 gl-mt-4', data: { feature_id: Users::CalloutsHelper::BRANCH_RULES_INFO_CALLOUT, dismiss_endpoint: callouts_path, defer_links: 'true' } }) do |c|
= c.body do
= s_("Branches|You can now find an overview of settings for protected branches, merge request approvals, status checks, and security approvals conveniently in one spot.")
= c.actions do
= render Pajamas::ButtonComponent.new(variant: :confirm, href: project_settings_repository_path(@project, anchor: 'js-branch-rules'), button_options: { class: 'deferred-link gl-alert-action' }) do
= s_("Branches|View branch rules")
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-close'}) do
= _('Dismiss')
|