2015-04-30 13:06:18 -04:00
|
|
|
- page_title "Branches"
|
2015-09-17 06:16:24 -04:00
|
|
|
= render "projects/commits/header_title"
|
2013-07-16 15:19:07 -04:00
|
|
|
= render "projects/commits/head"
|
2015-09-07 05:44:00 -04:00
|
|
|
.gray-content-block
|
2014-05-23 07:25:55 -04:00
|
|
|
.pull-right
|
|
|
|
- if can? current_user, :push_code, @project
|
2015-01-24 13:02:58 -05:00
|
|
|
= link_to new_namespace_project_branch_path(@project.namespace, @project), class: 'btn btn-create' do
|
2014-10-01 18:21:29 -04:00
|
|
|
%i.fa.fa-add-sign
|
2014-05-23 07:25:55 -04:00
|
|
|
New branch
|
|
|
|
|
|
|
|
.dropdown.inline
|
2014-09-30 10:39:37 -04:00
|
|
|
%button.dropdown-toggle.btn{type: 'button', 'data-toggle' => 'dropdown'}
|
2014-05-23 07:25:55 -04:00
|
|
|
%span.light sort:
|
|
|
|
- if @sort.present?
|
|
|
|
= @sort.humanize
|
|
|
|
- else
|
|
|
|
Name
|
|
|
|
%b.caret
|
|
|
|
%ul.dropdown-menu
|
|
|
|
%li
|
2015-01-24 13:02:58 -05:00
|
|
|
= link_to namespace_project_branches_path(sort: nil) do
|
2014-05-23 07:25:55 -04:00
|
|
|
Name
|
2015-01-24 13:02:58 -05:00
|
|
|
= link_to namespace_project_branches_path(sort: 'recently_updated') do
|
2014-12-04 05:10:38 -05:00
|
|
|
= sort_title_recently_updated
|
2015-01-24 13:02:58 -05:00
|
|
|
= link_to namespace_project_branches_path(sort: 'last_updated') do
|
2014-12-04 05:10:38 -05:00
|
|
|
= sort_title_oldest_updated
|
2015-09-07 05:44:00 -04:00
|
|
|
.oneline
|
|
|
|
Protected branches can be managed in project settings
|
2014-05-23 07:25:55 -04:00
|
|
|
- unless @branches.empty?
|
2015-09-07 05:44:00 -04:00
|
|
|
%ul.content-list.all-branches
|
2014-05-23 07:25:55 -04:00
|
|
|
- @branches.each do |branch|
|
|
|
|
= render "projects/branches/branch", branch: branch
|
|
|
|
= paginate @branches, theme: 'gitlab'
|