BigW Consortium Gitlab

index.html.haml 1.08 KB
Newer Older
1
- page_title "Branches"
2
= render "projects/commits/head"
3 4 5 6
%h3.page-title
  Branches
  .pull-right
    - if can? current_user, :push_code, @project
Vinnie Okada committed
7
      = link_to new_namespace_project_branch_path(@project.namespace, @project), class: 'btn btn-create' do
8
        %i.fa.fa-add-sign
9 10 11
        New branch
       
    .dropdown.inline
12
      %button.dropdown-toggle.btn{type: 'button', 'data-toggle' => 'dropdown'}
13 14 15 16 17 18 19 20
        %span.light sort:
        - if @sort.present?
          = @sort.humanize
        - else
          Name
        %b.caret
      %ul.dropdown-menu
        %li
Vinnie Okada committed
21
          = link_to namespace_project_branches_path(sort: nil) do
22
            Name
Vinnie Okada committed
23
          = link_to namespace_project_branches_path(sort: 'recently_updated') do
24
            = sort_title_recently_updated
Vinnie Okada committed
25
          = link_to namespace_project_branches_path(sort: 'last_updated') do
26
            = sort_title_oldest_updated
27 28 29 30 31 32
%hr
- unless @branches.empty?
  %ul.bordered-list.top-list.all-branches
    - @branches.each do |branch|
      = render "projects/branches/branch", branch: branch
  = paginate @branches, theme: 'gitlab'