Sha256: 124f10236dce3f373d5423e6211146729d8410aba6e7c2f0c579604ba0b603b6

Contents?: true

Size: 783 Bytes

Versions: 28

Compression:

Stored size: 783 Bytes

Contents

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.last_commit.updated_at
  xml.link      :href => "#{project_url(@project)}.atom", :rel => "self"
  xml.id        "#{project_url(@project)}.atom"

  @project.commits.each do |commit|
    xml.entry do
      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 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

Version data entries

28 entries across 28 versions & 8 rubygems

Version Path
sr-integrity-0.1.9.2 views/project.builder
integrity-0.1.11 views/project.builder
integrity-0.1.10 views/project.builder
integrity-0.1.9.1 views/project.builder
integrity-0.1.9.0 views/project.builder
integrity-0.1.9 views/project.builder
integrity-0.1.9.2 views/project.builder
integrity-0.1.9.3 views/project.builder