BigW Consortium Gitlab

show.html.haml 1.66 KB
Newer Older
1 2
- @no_container = true

3
- page_title _("Commits"), @ref
4
= content_for :meta_tags do
5
  = auto_discovery_link_tag(:atom, namespace_project_commits_url(@project.namespace, @project, @ref, rss_url_options), title: "#{@project.name}:#{@ref} commits")
6

7 8
= content_for :sub_nav do
  = render "head"
gitlabhq committed
9

10
%div{ class: container_class }
11
  .row-content-block.second-block.content-component-block.flex-container-block
12 13 14
    .tree-ref-holder
      = render 'shared/ref_switcher', destination: 'commits'

15 16 17
    %ul.breadcrumb.repo-breadcrumb
      = commits_breadcrumbs

18 19 20
    .block-controls.hidden-xs.hidden-sm
      - if @merge_request.present?
        .control
21
          = link_to _("View open merge request"), namespace_project_merge_request_path(@project.namespace, @project, @merge_request), class: 'btn'
22 23
      - elsif create_mr_button?(@repository.root_ref, @ref)
        .control
24
          = link_to _("Create merge request"), create_mr_path(@repository.root_ref, @ref), class: 'btn btn-success'
25

26
      .control
Phil Hughes committed
27
        = form_tag(namespace_project_commits_path(@project.namespace, @project, @id), method: :get, class: 'commits-search-form') do
28
          = search_field_tag :search, params[:search], { placeholder: _('Filter by commit message'), id: 'commits-search', class: 'form-control search-text-input input-short', spellcheck: false }
29
      .control
30
        = link_to namespace_project_commits_path(@project.namespace, @project, @ref, rss_url_options), title: _("Commits feed"), class: 'btn' do
31
          = icon("rss")
gitlabhq committed
32

33
  %div{ id: dom_id(@project) }
Phil Hughes committed
34
    %ol#commits-list.list-unstyled.content_list
35
      = render 'commits', project: @project, ref: @ref
36
  = spinner
37

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