BigW Consortium Gitlab

branches.html.haml 629 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
- if @branches.any? || @tags.any?
  - branch = commit_default_branch(@project, @branches)
  = link_to(project_ref_path(@project, branch), class: "label label-gray ref-name") do
    = icon('code-fork')
    = branch

  -# `commit_default_branch` deletes the default branch from `@branches`,
  -# so only render this if we have more branches left
  - if @branches.any? || @tags.any?
    %span
      = link_to "…", "#", class: "js-details-expand label label-gray"

13
      %span.js-details-content.hide
14 15
        = commit_branches_links(@project, @branches) if @branches.any?
        = commit_tags_links(@project, @tags) if @tags.any?