index.html.haml
1.07 KB
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
35
36
37
%h3 
  Commits
  - if current_user.private_token   
    %span.rss-icon
      = link_to project_commits_path(@project, :atom, { :private_token => current_user.private_token, :ref => @ref }) do 
        = image_tag "Rss-UI.PNG", :width => 22, :title => "feed"
  = 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
- if params[:path]
  %ul.breadcrumb
    %li
      = link_to project_commits_path(@project) do
        = @project.code
      %span.divider 
        \/
    %li
      %a{:href => "#"}= params[:path].split("/").join(" / ")
%div{:id => dom_id(@project)}
  #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);
    });
:javascript
  $(function(){
    $('.project-refs-select').chosen();
  });