BigW Consortium Gitlab

index.html.haml 680 Bytes
Newer Older
gitlabhq committed
1
- content_for(:body_class, "projects-page")
2 3 4 5 6 7 8
.container_4
  .grid_4
    - if current_user.can_create_project?
      %a.grey-button.right{:href => new_project_path} Create new project
    %h2.icon
      %span
      Projects
9

10 11 12 13 14 15 16 17
  %div.clear
  - unless @projects.empty?
    %div{:class => "tile"}
      = render "tile"

    -# If projects requris paging
    -# We add ajax loader & init script
    - if @projects.count == @limit
18 19 20 21
      .clear
      .loading{ :style => "display:none;"}
        %center= image_tag "ajax-loader.gif"

22 23 24 25 26 27 28 29
      :javascript
        $(function(){
          ProjectsList.init(16);
        });
  - else
    %center.prepend-top
      %h2
        %cite Nothing here