index.html.haml 906 Bytes
Newer Older
gitlabhq's avatar
gitlabhq committed
1
- content_for(:body_class, "project-page commits-page")
gitlabhq's avatar
gitlabhq committed
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25

.left
  = form_tag project_commits_path(@project), :method => :get do
    = select_tag "branch", options_for_select(@repo.heads.map(&:name), @branch), :onchange => "this.form.submit();", :class => "", :prompt => "Branches"
.left
  = form_tag project_commits_path(@project), :method => :get do
    = select_tag "tag", options_for_select(@project.tags, @tag), :onchange => "this.form.submit();", :class => "", :prompt => "Tags"
.clear

%br


-#%a.right.button{:href => "#"} Download
-#-if can? current_user, :admin_project, @project
  %a.right.button.blue{:href => "#"} EDIT
%h2.icon
  %span
  %a.project-name{:href => "#"}
    %i.arrow>
    Project
   
  %d
    %a{:href => "#"}
      = @ref
gitlabhq's avatar
gitlabhq committed
26
  - if params[:path]
gitlabhq's avatar
gitlabhq committed
27 28 29 30 31 32 33
     
    %d
      %a{:href => "#"}= params[:path].split("/").join(" / ")


%div{:id => dom_id(@project)}
  = render "commits"