gitlab-org--gitlab-foss/app/views/projects/commits/show.html.haml

40 lines
1.6 KiB
Text
Raw Normal View History

2016-06-03 11:53:04 -04:00
- @no_container = true
2015-04-30 13:06:18 -04:00
- page_title "Commits", @ref
= content_for :meta_tags do
= auto_discovery_link_tag(:atom, namespace_project_commits_url(@project.namespace, @project, @ref, rss_url_options), title: "#{@project.name}:#{@ref} commits")
= content_for :sub_nav do
= render "head"
2011-11-01 16:11:24 -04:00
2016-06-30 09:01:26 -04:00
%div{ class: container_class }
.row-content-block.second-block.content-component-block.flex-container-block
2016-06-03 11:53:04 -04:00
.tree-ref-holder
= render 'shared/ref_switcher', destination: 'commits'
%ul.breadcrumb.repo-breadcrumb
= commits_breadcrumbs
2016-06-03 11:53:04 -04:00
.block-controls.hidden-xs.hidden-sm
- if @merge_request.present?
.control
= link_to "View Open Merge Request", namespace_project_merge_request_path(@project.namespace, @project, @merge_request), class: 'btn'
- elsif create_mr_button?(@repository.root_ref, @ref)
.control
= link_to "Create Merge Request", create_mr_path(@repository.root_ref, @ref), class: 'btn btn-success'
.control
2016-05-24 03:28:18 -04:00
= form_tag(namespace_project_commits_path(@project.namespace, @project, @id), method: :get, class: 'commits-search-form') do
= search_field_tag :search, params[:search], { placeholder: 'Filter by commit message', id: 'commits-search', class: 'form-control search-text-input input-short', spellcheck: false }
.control
= link_to namespace_project_commits_path(@project.namespace, @project, @ref, rss_url_options), title: "Commits Feed", class: 'btn' do
= icon("rss")
2011-11-01 16:11:24 -04:00
%div{ id: dom_id(@project) }
2016-05-24 03:28:18 -04:00
%ol#commits-list.list-unstyled.content_list
= render 'commits', project: @project, ref: @ref
2016-06-03 11:53:04 -04:00
= spinner
2011-11-05 08:26:06 -04:00
:javascript
2016-04-20 20:21:28 -04:00
CommitsList.init(#{@limit});