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

40 lines
1.6 KiB
Text
Raw Normal View History

- @no_container = true
2015-09-11 14:41:01 +05:30
- page_title "Commits", @ref
= content_for :meta_tags do
2017-08-17 22:00:37 +05:30
= auto_discovery_link_tag(:atom, namespace_project_commits_url(@project.namespace, @project, @ref, rss_url_options), title: "#{@project.name}:#{@ref} commits")
2015-09-11 14:41:01 +05:30
2016-11-03 12:29:30 +05:30
= content_for :sub_nav do
= render "head"
2014-09-02 18:07:02 +05:30
2016-08-24 12:49:21 +05:30
%div{ class: container_class }
2017-08-17 22:00:37 +05:30
.row-content-block.second-block.content-component-block.flex-container-block
.tree-ref-holder
= render 'shared/ref_switcher', destination: 'commits'
2017-08-17 22:00:37 +05:30
%ul.breadcrumb.repo-breadcrumb
= commits_breadcrumbs
.block-controls.hidden-xs.hidden-sm
- if @merge_request.present?
.control
2017-08-17 22:00:37 +05:30
= 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-08-17 22:00:37 +05:30
= link_to "Create merge request", create_mr_path(@repository.root_ref, @ref), class: 'btn btn-success'
2014-09-02 18:07:02 +05:30
.control
2016-06-22 15:30:34 +05:30
= 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-08-17 22:00:37 +05:30
.control
= link_to namespace_project_commits_path(@project.namespace, @project, @ref, rss_url_options), title: "Commits feed", class: 'btn' do
= icon("rss")
2014-09-02 18:07:02 +05:30
2017-08-17 22:00:37 +05:30
%div{ id: dom_id(@project) }
2016-06-22 15:30:34 +05:30
%ol#commits-list.list-unstyled.content_list
2016-11-24 13:41:30 +05:30
= render 'commits', project: @project, ref: @ref
= spinner
2014-09-02 18:07:02 +05:30
:javascript
2016-06-02 11:05:42 +05:30
CommitsList.init(#{@limit});