- if @projects.empty? .blank_slate %p None yet, huh? %h1 Why don't you = succeed "?" do %a{ :href => root_path("/new") } create your first project - else %ul#projects - @projects.each do |project| %li{ :class => cycle("even", "odd") + ' ' + project.status.to_s } %a{ :href => project_path(project) }&= project.name .meta %img.floating_gravatar{ gravatar_attrs(project.last_commit.author, 20) } - if project.building? Building! - elsif project.last_commit.nil? Never built yet - else = project.human_readable_status %p#new %a{ :href => root_path("/new") } Add a new project