#administrative %a{ :href => project_path(@project, :edit) } Edit Project - if @project.commits.empty? %form.blank_slate{ :action => project_path(@project, :builds), :method => :post } %p No builds for this project, buddy %h1 You can request a %button{ :type => :submit } manual build - else - @commit = @project.last_commit #last_build{ :class => @commit.status } = partial(:commit_info, :commit => @commit) %form{ :action => project_path(@project, :builds), :method => :post } %p.submit.manual-build %button{ :type => :submit, :title => "Fetch the last commit and build it" }< Build the last commit in the repository (or rebuild the latest) - unless @project.previous_commits.empty? %h2 Previous builds %ul#previous_builds - @project.previous_commits.each do |commit| %li{ :class => commit.status } %a{ :href => commit_path(commit) } %img.floating_gravatar.20{ gravatar_attrs(commit.author, 20) } %strong.build< &== Build #{commit.short_identifier} %span.attribution< == by #{commit.author.name}, #{pretty_date commit.committed_at}