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

36 lines
1.2 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"
2015-09-25 12:07:36 +05:30
.gray-content-block
.tree-ref-holder
= render 'shared/ref_switcher', destination: 'commits'
2014-09-02 18:07:02 +05:30
2015-09-25 12:07:36 +05:30
.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-09-11 14:41:01 +05:30
2015-09-25 12:07:36 +05:30
- 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-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)}
2015-04-26 12:48:37 +05:30
#commits-list= render "commits", project: @project
2014-09-02 18:07:02 +05:30
.clear
= spinner
- if @commits.count == @limit
:javascript
CommitsList.init("#{@ref}", #{@limit});