2015-04-30 13:06:18 -04:00
|
|
|
- page_title "Commits", @ref
|
2015-09-17 06:16:24 -04:00
|
|
|
= render "header_title"
|
2015-04-21 10:31:40 -04:00
|
|
|
= content_for :meta_tags do
|
|
|
|
- if current_user
|
2015-04-21 11:03:23 -04:00
|
|
|
= 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")
|
2015-04-21 10:31:40 -04:00
|
|
|
|
2012-02-06 15:32:04 -05:00
|
|
|
= render "head"
|
2011-11-01 16:11:24 -04:00
|
|
|
|
2015-09-07 05:44:00 -04:00
|
|
|
.gray-content-block
|
|
|
|
.tree-ref-holder
|
|
|
|
= render 'shared/ref_switcher', destination: 'commits'
|
2014-06-14 12:02:16 -04:00
|
|
|
|
2015-09-07 05:44:00 -04:00
|
|
|
.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
|
2015-05-09 16:26:25 -04:00
|
|
|
|
2015-09-07 05:44:00 -04:00
|
|
|
- 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")
|
2015-05-09 16:26:25 -04:00
|
|
|
|
2014-06-14 12:02:16 -04:00
|
|
|
|
2015-09-07 05:44:00 -04:00
|
|
|
%ul.breadcrumb.repo-breadcrumb
|
|
|
|
= commits_breadcrumbs
|
2011-11-01 16:11:24 -04:00
|
|
|
|
2012-08-10 18:07:50 -04:00
|
|
|
%div{id: dom_id(@project)}
|
2015-01-06 18:39:33 -05:00
|
|
|
#commits-list= render "commits", project: @project
|
2011-11-05 08:26:06 -04:00
|
|
|
.clear
|
2014-02-05 13:30:57 -05:00
|
|
|
= spinner
|
2011-11-05 08:26:06 -04:00
|
|
|
|
2011-11-27 03:36:28 -05:00
|
|
|
- if @commits.count == @limit
|
|
|
|
:javascript
|
2013-05-02 04:46:45 -04:00
|
|
|
CommitsList.init("#{@ref}", #{@limit});
|
2012-01-29 16:59:12 -05:00
|
|
|
|