2016-06-03 11:53:04 -04:00
|
|
|
- @no_container = true
|
|
|
|
|
2015-04-30 13:06:18 -04:00
|
|
|
- page_title "Commits", @ref
|
2015-04-21 10:31:40 -04:00
|
|
|
= content_for :meta_tags do
|
2017-02-28 15:50:57 -05:00
|
|
|
= auto_discovery_link_tag(:atom, namespace_project_commits_url(@project.namespace, @project, @ref, rss_url_options), title: "#{@project.name}:#{@ref} commits")
|
2015-04-21 10:31:40 -04:00
|
|
|
|
2016-09-29 11:54:45 -04:00
|
|
|
= 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 }
|
2017-01-17 11:31:36 -05:00
|
|
|
.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'
|
|
|
|
|
2017-01-07 22:16:37 -05:00
|
|
|
%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
|
2017-02-08 09:54:53 -05:00
|
|
|
= link_to "Create Merge Request", create_mr_path(@repository.root_ref, @ref), class: 'btn btn-success'
|
2014-06-14 12:02:16 -04:00
|
|
|
|
2016-01-07 07:04:25 -05:00
|
|
|
.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 }
|
2017-02-28 15:50:57 -05:00
|
|
|
.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
|
|
|
|
2016-12-26 05:47:16 -05:00
|
|
|
%div{ id: dom_id(@project) }
|
2016-05-24 03:28:18 -04:00
|
|
|
%ol#commits-list.list-unstyled.content_list
|
2016-10-21 04:22:43 -04:00
|
|
|
= render 'commits', project: @project, ref: @ref
|
2016-06-03 11:53:04 -04:00
|
|
|
= spinner
|
2011-11-05 08:26:06 -04:00
|
|
|
|
2016-01-06 06:58:15 -05:00
|
|
|
:javascript
|
2016-04-20 20:21:28 -04:00
|
|
|
CommitsList.init(#{@limit});
|