summaryrefslogtreecommitdiff
path: root/app/views/projects/commits/show.html.haml
blob: e2a8d3ffbb9bc47aa83b4ff4a8d5342f3fbe0fbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
- page_title "Commits", @ref
= 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")

= render "head"

.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: "Feed", class: 'prepend-left-10 btn' do
        = icon("rss")
        Commits Feed


%ul.breadcrumb.repo-breadcrumb
  = commits_breadcrumbs

%div{id: dom_id(@project)}
  #commits-list= render "commits", project: @project
.clear
= spinner

- if @commits.count == @limit
  :javascript
    CommitsList.init("#{@ref}", #{@limit});