2011-11-01 10:00:59 +01:00
|
|
|
- content_for(:body_class, "projects-page")
|
2011-10-28 13:41:39 +02:00
|
|
|
- content_for(:page_title) do
|
2011-11-01 10:00:59 +01:00
|
|
|
.grid_4
|
|
|
|
- if current_user.can_create_project?
|
|
|
|
%a.grey-button.right{:href => new_project_path} Create new project
|
|
|
|
%h2.icon
|
2011-10-31 11:30:53 +01:00
|
|
|
%span
|
|
|
|
Projects
|
2011-10-28 13:41:39 +02:00
|
|
|
|
2011-10-15 17:57:27 +02:00
|
|
|
- unless @projects.empty?
|
|
|
|
%div{:class => "tile", :style => view_mode_style("tile")}
|
|
|
|
= render "tile"
|
|
|
|
%div{:class => "list", :style => view_mode_style("list")}
|
|
|
|
= render "list"
|
2011-10-26 15:46:25 +02:00
|
|
|
- else
|
2011-10-15 17:57:27 +02:00
|
|
|
%center.prepend-top
|
|
|
|
%h2
|
|
|
|
%cite Nothing here
|