views/project.builder in integrity-0.1.8 vs views/project.builder in integrity-0.1.9

- old
+ new

@@ -1,21 +1,21 @@ xml.instruct! xml.feed :xmlns => "http://www.w3.org/2005/Atom" do xml.title "Build history for #{@project.name}" xml.subtitle @project.uri - xml.updated @project.builds.first.created_at + xml.updated @project.last_commit.updated_at xml.link :href => "#{project_url(@project)}.atom", :rel => "self" xml.id "#{project_url(@project)}.atom" - @project.builds.each do |build| + @project.commits.each do |commit| xml.entry do - xml.id build_url(build) - xml.link :href => build_url(build), :rel => "alternate", :type => "text/html" - xml.updated build.created_at - xml.published build.created_at + xml.id commit_url(commit) + xml.link :href => commit_url(commit), :rel => "alternate", :type => "text/html" + xml.updated commit.created_at + xml.published commit.created_at - xml.title "Built #{build.short_commit_identifier} #{build.successful? ? "successfully" : "and failed"}" - xml.author { xml.name(build.commit_author.name) } - xml.content("<div>#{partial(:build_info, :build => build)}</div>", :type => "html") + xml.title commit.human_readable_status + xml.author { xml.name(commit.author.name) } + xml.content("<div>#{partial(:commit_info, :commit => commit)}</div>", :type => "html") end end end