2012-01-29 20:58:31 +01:00
|
|
|
%h3
|
|
|
|
Commits
|
|
|
|
- if current_user.private_token
|
|
|
|
%span.rss-icon
|
2011-12-19 22:32:59 +01:00
|
|
|
= link_to project_commits_path(@project, :atom, { :private_token => current_user.private_token, :ref => @ref }) do
|
2012-01-18 21:15:45 +01:00
|
|
|
= image_tag "Rss-UI.PNG", :width => 22, :title => "feed"
|
2012-01-29 20:58:31 +01:00
|
|
|
= form_tag switch_project_refs_path(@project), :method => :get, :class => "project-refs-form right" do
|
|
|
|
= select_tag "ref", grouped_options_refs, :onchange => "$(this.form).trigger('submit');", :class => "project-refs-select"
|
|
|
|
= hidden_field_tag :destination, "commits"
|
|
|
|
%hr
|
2011-11-01 21:11:24 +01:00
|
|
|
|
2011-12-12 18:22:01 +01:00
|
|
|
- if params[:path]
|
2012-01-27 00:46:32 +01:00
|
|
|
%ul.breadcrumb
|
|
|
|
%li
|
|
|
|
= link_to project_commits_path(@project) do
|
|
|
|
= @project.code
|
|
|
|
%span.divider
|
|
|
|
\/
|
|
|
|
%li
|
|
|
|
%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"
|
|
|
|
|
2011-11-27 09:36:28 +01:00
|
|
|
- if @commits.count == @limit
|
|
|
|
:javascript
|
|
|
|
$(function(){
|
|
|
|
CommitsList.init("#{@ref}", 20);
|
|
|
|
});
|
2012-01-29 22:59:12 +01:00
|
|
|
|
|
|
|
:javascript
|
|
|
|
$(function(){
|
|
|
|
$('.project-refs-select').chosen();
|
|
|
|
});
|