gitlab-org--gitlab-foss/app/views/projects/index.html.haml
2012-02-28 22:59:36 +02:00

23 lines
555 B
Text

%h3
Projects
%small= "( #{current_user.projects.count} )"
- if current_user.can_create_project?
%span.right
= link_to new_project_path, :class => "btn small" do
New Project
%hr
- unless @projects.empty?
%div.content_list= render "tile"
-# If projects requris paging
-# We add ajax loader & init script
- if @projects.count == @limit
.loading{ :style => "display:none;"}
%center= image_tag "ajax-loader.gif"
:javascript
$(function(){
Pager.init(#{@limit});
});
- else
%h2 Nothing here