2011-11-01 05:00:59 -04:00
|
|
|
- content_for(:body_class, "projects-page")
|
2011-12-20 01:29:14 -05:00
|
|
|
.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
|
2011-10-28 07:41:39 -04:00
|
|
|
|
2011-12-20 01:29:14 -05:00
|
|
|
%div.clear
|
|
|
|
- unless @projects.empty?
|
|
|
|
%div{:class => "tile"}
|
|
|
|
= render "tile"
|
|
|
|
|
|
|
|
-# If projects requris paging
|
|
|
|
-# We add ajax loader & init script
|
|
|
|
- if @projects.count == @limit
|
2011-12-20 01:24:14 -05:00
|
|
|
.clear
|
|
|
|
.loading{ :style => "display:none;"}
|
|
|
|
%center= image_tag "ajax-loader.gif"
|
|
|
|
|
2011-12-20 01:29:14 -05:00
|
|
|
:javascript
|
|
|
|
$(function(){
|
|
|
|
ProjectsList.init(16);
|
|
|
|
});
|
|
|
|
- else
|
|
|
|
%center.prepend-top
|
|
|
|
%h2
|
|
|
|
%cite Nothing here
|