2017-11-15 14:56:36 +00:00
|
|
|
- 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?
|
|
|
|
|
2018-04-10 17:11:34 +00:00
|
|
|
.card.prepend-top-10
|
|
|
|
.card-header
|
2018-06-02 00:40:09 +00:00
|
|
|
= panel_title
|
2019-01-16 17:55:15 +00:00
|
|
|
%ul.content-list.all-branches.qa-all-branches
|
2017-11-15 14:56:36 +00:00
|
|
|
- branches.first(overview_max_branches).each do |branch|
|
|
|
|
= render "projects/branches/branch", branch: branch, merged: project.repository.merged_to_root_ref?(branch)
|
|
|
|
- if branches.size > overview_max_branches
|
2018-04-10 17:11:34 +00:00
|
|
|
.card-footer.text-center
|
2017-11-15 14:56:36 +00:00
|
|
|
= link_to show_more_text, project_branches_filtered_path(project, state: state), id: "state-#{state}", data: { state: state }
|