gitlabhq/app/views/commits/index.html.haml

26 lines
749 B
Plaintext
Raw Normal View History

2011-11-01 11:48:26 +01:00
- content_for(:body_class, "project-page commits-page")
- if current_user.private_token
= content_for :rss_icon do
.rss-icon
= link_to project_commits_path(@project, :atom, { :private_token => current_user.private_token, :ref => @ref }) do
= image_tag "rss_icon_gray.png", :width => 16, :title => "feed"
2011-11-01 21:11:24 +01:00
2011-12-12 18:22:01 +01:00
- if params[:path]
2012-01-13 22:13:44 +01:00
%h2
= link_to project_commits_path(@project) do
= @project.code
\/
%a{:href => "#"}= params[:path].split("/").join(" / ")
2011-11-01 21:11:24 +01:00
%div{:id => dom_id(@project)}
2011-11-05 13:26:06 +01:00
#commits_list= render "commits"
.clear
.loading{ :style => "display:none;"}
%center= image_tag "ajax-loader.gif"
- if @commits.count == @limit
:javascript
$(function(){
CommitsList.init("#{@ref}", 20);
});