debian-mirror-gitlab/app/views/projects/branches/_panel.html.haml

19 lines
915 B
Text
Raw Normal View History

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?
2020-10-24 23:57:45 +05:30
.card.gl-mt-3
2018-11-08 19:23:39 +05:30
.card-header
2018-12-13 13:39:08 +05:30
= panel_title
2019-03-02 22:35:43 +05:30
%ul.content-list.all-branches.qa-all-branches
2018-03-27 19:54:05 +05:30
- branches.first(overview_max_branches).each do |branch|
2020-06-23 00:09:42 +05:30
= 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
2018-11-08 19:23:39 +05:30
.card-footer.text-center
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 }