2016-06-16 23:09:34 +05:30
|
|
|
- @no_container = true
|
2017-09-10 17:25:29 +05:30
|
|
|
- breadcrumb_title _("Commits")
|
2016-06-16 23:09:34 +05:30
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
- page_title _("Commits"), @ref
|
2015-09-11 14:41:01 +05:30
|
|
|
= content_for :meta_tags do
|
2018-03-17 18:26:18 +05:30
|
|
|
= auto_discovery_link_tag(:atom, project_commits_path(@project, @ref, rss_url_options), title: "#{@project.name}:#{@ref} commits")
|
2014-09-02 18:07:02 +05:30
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
.js-project-commits-show{ 'data-commits-limit' => @limit }
|
|
|
|
%div{ class: container_class }
|
|
|
|
.tree-holder
|
|
|
|
.nav-block
|
|
|
|
.tree-ref-container
|
|
|
|
.tree-ref-holder
|
|
|
|
= render 'shared/ref_switcher', destination: 'commits'
|
|
|
|
|
|
|
|
%ul.breadcrumb.repo-breadcrumb
|
|
|
|
= commits_breadcrumbs
|
|
|
|
.tree-controls.hidden-xs.hidden-sm
|
|
|
|
- if @merge_request.present?
|
|
|
|
.control
|
|
|
|
= link_to _("View open merge request"), project_merge_request_path(@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
|
2018-10-15 14:42:47 +05:30
|
|
|
= form_tag(project_commits_path(@project, @id), method: :get, class: 'commits-search-form js-signature-container', data: { 'signatures-path' => namespace_project_signatures_path }) do
|
2017-09-10 17:25:29 +05:30
|
|
|
= 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 project_commits_path(@project, @ref, rss_url_options), title: _("Commits feed"), class: 'btn' do
|
|
|
|
= icon("rss")
|
|
|
|
|
|
|
|
%div{ id: dom_id(@project) }
|
|
|
|
%ol#commits-list.list-unstyled.content_list
|
|
|
|
= render 'commits', project: @project, ref: @ref
|
|
|
|
= spinner
|