2018-03-27 19:54:05 +05:30
|
|
|
- branches = local_assigns.fetch(:branches)
|
|
|
|
- state = local_assigns.fetch(:state)
|
|
|
|
- panel_title = local_assigns.fetch(:panel_title)
|
|
|
|
- show_more_text = local_assigns.fetch(:show_more_text)
|
|
|
|
- project = local_assigns.fetch(:project)
|
|
|
|
- overview_max_branches = local_assigns.fetch(:overview_max_branches)
|
|
|
|
|
|
|
|
- return unless branches.any?
|
|
|
|
|
2023-07-09 08:55:56 +05:30
|
|
|
= render Pajamas::CardComponent.new(card_options: {class: 'gl-mt-5 gl-bg-gray-10'}, header_options: {class: 'gl-px-5 gl-py-4 gl-bg-white'}, body_options: {class: 'gl-px-3 gl-py-0'}, footer_options: {class: 'gl-bg-white'}) do |c|
|
|
|
|
- c.with_header do
|
|
|
|
%h3.card-title.h5.gl-line-height-24.gl-m-0
|
|
|
|
= panel_title
|
|
|
|
- c.with_body do
|
|
|
|
%ul.content-list.branches-list.all-branches{ data: { qa_selector: 'all_branches_container' } }
|
2022-08-27 11:52:29 +05:30
|
|
|
- branches.first(overview_max_branches).each do |branch|
|
|
|
|
= render "projects/branches/branch", branch: branch, merged: project.repository.merged_to_root_ref?(branch), commit_status: @branch_pipeline_statuses[branch.name], show_commit_status: @branch_pipeline_statuses.any?
|
2018-03-27 19:54:05 +05:30
|
|
|
- if branches.size > overview_max_branches
|
2023-07-09 08:55:56 +05:30
|
|
|
- c.with_footer do
|
2018-03-27 19:54:05 +05:30
|
|
|
= link_to show_more_text, project_branches_filtered_path(project, state: state), id: "state-#{state}", data: { state: state }
|