show.html.haml 1.5 KB
Newer Older
D
Douwe Maan 已提交
1
- page_title "Commits", @ref
2
= render "header_title"
3 4
= content_for :meta_tags do
  - if current_user
5
    = auto_discovery_link_tag(:atom, namespace_project_commits_url(@project.namespace, @project, @ref, format: :atom, private_token: current_user.private_token), title: "#{@project.name}:#{@ref} commits")
6

D
Dmitriy Zaporozhets 已提交
7
= render "head"
G
gitlabhq 已提交
8

9 10 11
.gray-content-block
  .tree-ref-holder
    = render 'shared/ref_switcher', destination: 'commits'
D
Dmitriy Zaporozhets 已提交
12

13
  .pull-right.hidden-xs.hidden-sm
14
    - if create_mr_button?(@repository.root_ref, @ref)
15 16 17 18 19 20 21
      .pull-left.prepend-left-10
        = link_to create_mr_path(@repository.root_ref, @ref), class: 'btn btn-success' do
          = icon('plus')
          Create Merge Request

    .pull-left.prepend-left-10
      = form_tag(namespace_project_commits_path(@project.namespace, @project, @ref), method: :get, class: 'pull-left commits-search-form') do
22
        = search_field_tag :search, params[:search], { placeholder: 'Filter by commit message', id: 'commits-search', class: 'form-control search-text-input', spellcheck: false }
23

24
    - if current_user && current_user.private_token
25 26 27
      .pull-left.prepend-left-10
        = link_to namespace_project_commits_path(@project.namespace, @project, @ref, {format: :atom, private_token: current_user.private_token}), title: "Commits Feed", class: 'btn' do
          = icon("rss")
28

D
Dmitriy Zaporozhets 已提交
29

30 31
  %ul.breadcrumb.repo-breadcrumb
    = commits_breadcrumbs
G
gitlabhq 已提交
32

33
%div{id: dom_id(@project)}
34
  #commits-list.content_list= render "commits", project: @project
D
Dmitriy Zaporozhets 已提交
35
.clear
36
= spinner
D
Dmitriy Zaporozhets 已提交
37

38 39
:javascript
  CommitsList.init("#{@ref}", #{@limit});