gitlab-org--gitlab-foss/app/views/projects/commits/show.html.haml

36 lines
1.2 KiB
Text
Raw Normal View History

2015-04-30 13:06:18 -04:00
- page_title "Commits", @ref
= render "header_title"
= 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")
2012-02-06 15:32:04 -05:00
= render "head"
2011-11-01 16:11:24 -04:00
.gray-content-block
.tree-ref-holder
= render 'shared/ref_switcher', destination: 'commits'
.commits-feed-holder.hidden-xs.hidden-sm
- if create_mr_button?(@repository.root_ref, @ref)
= link_to create_mr_path(@repository.root_ref, @ref), class: 'btn btn-success' do
= icon('plus')
Create Merge Request
- if current_user && current_user.private_token
= link_to namespace_project_commits_path(@project.namespace, @project, @ref, {format: :atom, private_token: current_user.private_token}), title: "Commits Feed", class: 'prepend-left-10 btn' do
= icon("rss")
%ul.breadcrumb.repo-breadcrumb
= commits_breadcrumbs
2011-11-01 16:11:24 -04:00
%div{id: dom_id(@project)}
#commits-list= render "commits", project: @project
2011-11-05 08:26:06 -04:00
.clear
= spinner
2011-11-05 08:26:06 -04:00
- if @commits.count == @limit
:javascript
CommitsList.init("#{@ref}", #{@limit});