debian-mirror-gitlab/app/views/projects/commits/show.html.haml

39 lines
2.1 KiB
Text
Raw Normal View History

2017-09-10 17:25:29 +05:30
- breadcrumb_title _("Commits")
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 }
2019-12-04 20:38:33 +05:30
.tree-holder
.nav-block
.tree-ref-container
.tree-ref-holder
= render 'shared/ref_switcher', destination: 'commits'
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'
2021-04-17 20:07:23 +05:30
- elsif create_mr_button?(from: @repository.root_ref, to: @ref, source_project: @project, target_project: @project)
2020-07-28 23:09:34 +05:30
.control.d-none.d-md-block
2021-04-17 20:07:23 +05:30
= link_to _("Create merge request"), create_mr_path(from: @repository.root_ref, to: @ref, source_project: @project, target_project: @project), class: 'btn gl-button btn-success'
2019-12-04 20:38:33 +05:30
.control
= form_tag(project_commits_path(@project, @id), method: :get, class: 'commits-search-form js-signature-container', data: { 'signatures-path' => namespace_project_signatures_path }) 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
2020-10-24 23:57:45 +05:30
= sprite_icon('rss', css_class: 'qa-rss-icon')
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
2021-01-29 00:20:46 +05:30
.loading.hide
= loading_icon(size: "lg")