6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# File 'app/helpers/projects/settings/branch_rules_helper.rb', line 6
def branch_rules_data(project)
{
project_path: project.full_path,
protected_branches_path: project_settings_repository_path(project, anchor: 'js-protected-branches-settings'),
branch_rules_path: project_settings_repository_path(project, anchor: 'branch-rules'),
approval_rules_path: project_settings_merge_requests_path(project,
anchor: 'js-merge-request-approval-settings'),
status_checks_path: project_settings_merge_requests_path(project, anchor: 'js-merge-request-settings'),
branches_path: project_branches_path(project),
show_status_checks: 'false',
show_approvers: 'false',
show_code_owners: 'false',
can_admin_protected_branches: can?(current_user, :admin_protected_branch, project).to_s
}
end
|