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

43 lines
1.8 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
- if current_user
= 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")
= 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 }
2016-06-03 14:09:45 -04:00
.row-content-block.second-block.content-component-block
2016-06-03 11:53:04 -04:00
.tree-ref-holder
= render 'shared/ref_switcher', destination: 'commits'
.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_mr_path(@repository.root_ref, @ref), class: 'btn btn-success' do
= icon('plus')
Create Merge Request
.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 }
2016-06-03 11:53:04 -04:00
- if current_user && current_user.private_token
.control
= link_to namespace_project_commits_path(@project.namespace, @project, @ref, { format: :atom, private_token: current_user.private_token }), title: "Commits Feed", class: 'btn' do
2016-06-03 11:53:04 -04:00
= icon("rss")
%ul.breadcrumb.repo-breadcrumb
= commits_breadcrumbs
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});