Sha256: 4056c3cd0f34f55b44d058b553a6142b48f8761c075c47f42266391493f2b5ca

Contents?: true

Size: 1.15 KB

Versions: 2

Compression:

Stored size: 1.15 KB

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_url(project) }&= project.name
        .meta
          
          - short_commit_identifier = project.current_commit_identifier ? project.current_commit_identifier : "unknown commit id"
          - shortened_commit_message = project.shortened_current_commit_msg + "..."
          
          - if project.building?
            = "Building <b>#{short_commit_identifier}</b> (#{shortened_commit_message}) for #{pretty_time_since(project.started_build_at)}"
          - elsif project.last_build.nil?
            Never built yet
          - else
            = "Built <b>#{short_commit_identifier}</b> (#{shortened_commit_message}) "
            = project.last_build.successful? ? "successfully" : "and failed"
  %p#new
    %a{ :href => "/new" } Add a new project

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bantic-integrity-0.1.4.3 views/home.haml
bantic-integrity-0.1.4.4 views/home.haml