Sha256: 4962b900946ef348d499fcab29769f4255dde19f0cde9cd652c458950c6ff066

Contents?: true

Size: 865 Bytes

Versions: 6

Compression:

Stored size: 865 Bytes

Contents

- if @projects.empty?
  .blank_slate
    %p None yet, huh?
    %h1
      Why don't you
      = succeed "?" do
        %a{ :href => "/new" } create your first project
- else
  %ul#projects
    - @projects.each do |project|
      %li{ :class => cycle("even", "odd") + (project.building? ? ' building' : '') + (project.last_build ? (project.last_build.successful? ? ' success' : ' failed') : '') }
        %a{ :href => project_path(project) }&= project.name
        .meta
          - if project.building?
            Building!
          - elsif project.last_build.nil?
            Never built yet
          - else
            == Built #{project.last_build.short_commit_identifier}
            = pretty_date(project.last_build.created_at)
            = project.last_build.successful? ? "successfully" : "and failed"
  %p#new
    %a{ :href => "/new" } Add a new project

Version data entries

6 entries across 6 versions & 4 rubygems

Version Path
brycethornton-integrity-0.1.7.1 views/home.haml
foca-integrity-0.1.6 views/home.haml
foca-integrity-0.1.7 views/home.haml
foca-integrity-0.1.8 views/home.haml
myronmarston-integrity-0.1.7.1 views/home.haml
integrity-0.1.8 views/home.haml