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

40 lines
1.5 KiB
Text
Raw Normal View History

2015-09-11 14:41:01 +05:30
- page_title "Commits", @ref
2015-09-25 12:07:36 +05:30
= render "header_title"
2015-09-11 14:41:01 +05:30
= content_for :meta_tags do
- if current_user
= auto_discovery_link_tag(:atom, namespace_project_commits_url(@project.namespace, @project, @ref, format: :atom, private_token: current_user.private_token), title: "#{@project.name}:#{@ref} commits")
2014-09-02 18:07:02 +05:30
= render "head"
.gray-content-block.second-block
2015-09-25 12:07:36 +05:30
.tree-ref-holder
= render 'shared/ref_switcher', destination: 'commits'
2014-09-02 18:07:02 +05:30
.block-controls.hidden-xs.hidden-sm
2015-09-25 12:07:36 +05:30
- if create_mr_button?(@repository.root_ref, @ref)
.control
= link_to create_mr_path(@repository.root_ref, @ref), class: 'btn btn-success' do
= icon('plus')
Create Merge Request
.control
= form_tag(namespace_project_commits_path(@project.namespace, @project, @id), method: :get, class: 'pull-left commits-search-form') do
= search_field_tag :search, params[:search], { placeholder: 'Filter by commit message', id: 'commits-search', class: 'form-control search-text-input', spellcheck: false }
2015-09-11 14:41:01 +05:30
2015-09-25 12:07:36 +05:30
- if current_user && current_user.private_token
.control
= link_to namespace_project_commits_path(@project.namespace, @project, @ref, {format: :atom, private_token: current_user.private_token}), title: "Commits Feed", class: 'btn' do
= icon("rss")
2015-09-11 14:41:01 +05:30
2014-09-02 18:07:02 +05:30
2015-09-25 12:07:36 +05:30
%ul.breadcrumb.repo-breadcrumb
= commits_breadcrumbs
2014-09-02 18:07:02 +05:30
%div{id: dom_id(@project)}
#commits-list.content_list= render "commits", project: @project
2014-09-02 18:07:02 +05:30
.clear
= spinner
:javascript
CommitsList.init("#{@ref}", #{@limit});