diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-01-07 17:00:13 -0500 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-01-07 20:01:08 -0500 |
commit | 4408dc0bd18dc1cddda8b413dbf57143290f5d73 (patch) | |
tree | 6944cda375a0c31acd62422a299a65ca2e9a7b01 /app/views/projects/commits | |
parent | 63444936559cffba174a69c01d2425fb6b5e61cf (diff) | |
download | gitlab-ce-4408dc0bd18dc1cddda8b413dbf57143290f5d73.tar.gz |
Use `xmlschema` where even more appropriate!
Diffstat (limited to 'app/views/projects/commits')
-rw-r--r-- | app/views/projects/commits/show.atom.builder | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/commits/show.atom.builder b/app/views/projects/commits/show.atom.builder index 43f10b51c20..e310fafd82c 100644 --- a/app/views/projects/commits/show.atom.builder +++ b/app/views/projects/commits/show.atom.builder @@ -4,14 +4,14 @@ xml.feed "xmlns" => "http://www.w3.org/2005/Atom", "xmlns:media" => "http://sear xml.link href: namespace_project_commits_url(@project.namespace, @project, @ref, format: :atom, private_token: current_user.try(:private_token)), rel: "self", type: "application/atom+xml" xml.link href: namespace_project_commits_url(@project.namespace, @project, @ref), rel: "alternate", type: "text/html" xml.id namespace_project_commits_url(@project.namespace, @project, @ref) - xml.updated @commits.first.committed_date.to_s(:iso8601) if @commits.any? + xml.updated @commits.first.committed_date.xmlschema if @commits.any? @commits.each do |commit| xml.entry do xml.id namespace_project_commit_url(@project.namespace, @project, id: commit.id) xml.link href: namespace_project_commit_url(@project.namespace, @project, id: commit.id) xml.title truncate(commit.title, length: 80) - xml.updated commit.committed_date.to_s(:iso8601) + xml.updated commit.committed_date.xmlschema xml.media :thumbnail, width: "40", height: "40", url: image_url(avatar_icon(commit.author_email)) xml.author do |author| xml.name commit.author_name |