55826e7783
Replaces .card-header > hX.card-title with hX.card-header to remove .card-title. At a occurrence where bold styling is not necessary, div.card-header is used instead. By full removal of .card-title at the moment, all workarounds for BS4's card-title are removed as well. More information: https://getbootstrap.com/docs/4.0/migration/#panels Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
18 lines
799 B
Text
18 lines
799 B
Text
- 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?
|
|
|
|
.card.prepend-top-10
|
|
.card-header
|
|
= panel_title
|
|
%ul.content-list.all-branches
|
|
- 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
|
|
.card-footer.text-center
|
|
= link_to show_more_text, project_branches_filtered_path(project, state: state), id: "state-#{state}", data: { state: state }
|