Welcome to mirror list, hosted at ThFree Co, Russian Federation.

index.html.haml « projects « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 20f4f510cddf7e5f0a3756ad63f855979f51275b (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
35
.row
  .span4
    %div.leftbar.ui-box
      %h5
        Projects
        - if current_user.can_create_project?
          %span.right
            = link_to new_project_path, :class => "btn very_small info" do 
              New Project
      .content_list
        - @projects.each do |project|
          = link_to project_path(project), :remote => true, :class => dom_class(project) do
            %h4
              %span.ico.project
              = truncate(project.name, :length => 22)
  .span12.right
    .show_holder.ui-box.padded
      .loading


:javascript
  $(function(){
    $("a.project").live("ajax:before", function() { 
      $(".show_holder").html("<div class='loading'>");
      $('a.project').removeClass("active");
      $(this).addClass("active");
    });
    $('a.project:first-child').trigger("click");
  });

- if @projects.count == @limit
  :javascript
    $(function(){
      Pager.init(#{@limit});
    });