2017-09-10 17:25:29 +05:30
|
|
|
- breadcrumb_title _("Commits")
|
2022-11-25 23:54:43 +05:30
|
|
|
- add_page_specific_style 'page_bundles/tree'
|
2017-09-10 17:25:29 +05:30
|
|
|
- page_title _("Commits"), @ref
|
2023-03-04 22:38:38 +05:30
|
|
|
|
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 }
|
2019-12-04 20:38:33 +05:30
|
|
|
.tree-holder
|
|
|
|
.nav-block
|
|
|
|
.tree-ref-container
|
|
|
|
.tree-ref-holder
|
2023-03-04 22:38:38 +05:30
|
|
|
#js-project-commits-ref-switcher{ data: { "project-id" => @project.id, "ref" => @ref, "commits_path": project_commits_path(@project) } }
|
2017-09-10 17:25:29 +05:30
|
|
|
|
2019-12-04 20:38:33 +05:30
|
|
|
%ul.breadcrumb.repo-breadcrumb
|
|
|
|
= commits_breadcrumbs
|
2020-04-22 19:07:51 +05:30
|
|
|
#js-author-dropdown{ data: { 'commits_path': project_commits_path(@project), 'project_id': @project.id } }
|
2020-07-28 23:09:34 +05:30
|
|
|
.tree-controls
|
2019-12-04 20:38:33 +05:30
|
|
|
- if @merge_request.present?
|
2020-07-28 23:09:34 +05:30
|
|
|
.control.d-none.d-md-block
|
2021-01-03 14:25:43 +05:30
|
|
|
= link_to _("View open merge request"), project_merge_request_path(@project, @merge_request), class: 'btn gl-button'
|
2022-08-27 11:52:29 +05:30
|
|
|
- elsif create_mr_button?(from: @ref, source_project: @project)
|
2020-07-28 23:09:34 +05:30
|
|
|
.control.d-none.d-md-block
|
2022-08-27 11:52:29 +05:30
|
|
|
= render Pajamas::ButtonComponent.new(variant: :confirm, href: create_mr_path(from: @ref, source_project: @project)) do
|
|
|
|
= _("Create merge request")
|
2019-12-04 20:38:33 +05:30
|
|
|
|
|
|
|
.control
|
2023-03-04 22:38:38 +05:30
|
|
|
= form_tag(project_commits_path(@project, @id, ref_type: @ref_type), method: :get, class: 'commits-search-form js-signature-container', data: { 'signatures-path' => namespace_project_signatures_path(ref_type: @ref_type)}) do
|
2021-03-11 19:13:27 +05:30
|
|
|
= search_field_tag :search, params[:search], { placeholder: _('Search by message'), id: 'commits-search', class: 'form-control gl-form-input input-short gl-mt-3 gl-sm-mt-0 gl-min-w-full', spellcheck: false }
|
2020-07-28 23:09:34 +05:30
|
|
|
.control.d-none.d-md-block
|
2021-10-27 15:23:28 +05:30
|
|
|
= link_to project_commits_path(@project, @id, rss_url_options), title: _("Commits feed"), class: 'btn gl-button btn-default btn-icon' do
|
2022-10-11 01:57:18 +05:30
|
|
|
= sprite_icon('rss')
|
2017-09-10 17:25:29 +05:30
|
|
|
|
2019-12-04 20:38:33 +05:30
|
|
|
= render_if_exists 'projects/commits/mirror_status'
|
2019-09-04 21:01:54 +05:30
|
|
|
|
2019-12-04 20:38:33 +05:30
|
|
|
%div{ id: dom_id(@project) }
|
|
|
|
%ol#commits-list.list-unstyled.content_list
|
|
|
|
= render 'commits', project: @project, ref: @ref
|
2022-05-07 20:08:51 +05:30
|
|
|
= gl_loading_icon(size: 'lg', css_class: 'loading hide')
|