summaryrefslogtreecommitdiff
path: root/app/views/projects/commit/branches.html.haml
blob: 82aac1fbd15e4424b7c7b7b6eeeaa8a366dd4b90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
- if @branches.any?
  %span
    - branch = commit_default_branch(@project, @branches)
    = link_to(namespace_project_tree_path(@project.namespace, @project, branch)) do
      %span.label.label-gray
        %i.fa.fa-code-fork
        = branch
    - if @branches.any? || @tags.any?
      = link_to("#", class: "js-details-expand") do
        %span.label.label-gray
          \...
      %span.js-details-content.hide
        - if @branches.any?
          = commit_branches_links(@project, @branches)
        - if @tags.any?
          = commit_tags_links(@project, @tags)