Skip to content

Commit

Permalink
feeds xml cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-sonestedt committed Nov 8, 2009
1 parent f9565fd commit 55cd406
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 21 deletions.
19 changes: 10 additions & 9 deletions buildbot/status/web/templates/feed_atom10_header.xml
@@ -1,10 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<id>{{ link }}%s</id>
<title>{{ title }}</title>
{% if self.link %}
<link rel="self" href="{{ link }}/atom"/>
<link rel="alternate" href="{{ link }}"/>
{% endif %}
{% if description %}<subtitle>{{ description }}</subtitle>{% endif %}
{% if rfc3339_pubdate %}<updated>{{ rfc3339_pubdate }}</updated>{% endif %}
<author>BuildBot</author>
<id>{{ link }}%s</id>
<title>{{ title }}</title>
{% if self.link %}
<link rel="self" href="{{ link }}/atom"/>
<link rel="alternate" href="{{ link }}"/>
{% endif %}
{% if description %}<subtitle>{{ description }}</subtitle>{% endif %}
{% if rfc3339_pubdate %}<updated>{{ rfc3339_pubdate }}</updated>{% endif %}
<author>BuildBot</author>
8 changes: 4 additions & 4 deletions buildbot/status/web/templates/feed_atom10_item.xml
Expand Up @@ -7,9 +7,9 @@
<pre xml:space="preserve">{{ lastlog|e|replace('\n', '<br/>') }}</pre>
</div>
</content>
{% if rfc3339_pubdate %}
<updated>{{ rfc3339_pubdate }}</updated>
<id>{{ guid }}</id>
{% endif %}
{% if rfc3339_pubdate %}
<updated>{{ rfc3339_pubdate }}</updated>
<id>{{ guid }}</id>
{% endif %}
<author>Buildbot</author>
</entry>
2 changes: 1 addition & 1 deletion buildbot/status/web/templates/feed_rss20_footer.xml
@@ -1,2 +1,2 @@
</channel>
</channel>
</rss>
15 changes: 8 additions & 7 deletions buildbot/status/web/templates/feed_rss20_header.xml
@@ -1,8 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ title }}</title>
{% if link %}<link>{{ link }}</link>{% endif %}
<atom:link href="{{ rootlink }}/rss" rel="self" type="application/rss+xml"/>
{% if language %}<language>{{ language }}</language>{% endif %}
{% if description %}<description>{{ description }}</description>{% endif %}
{% if pub_date %}<pubDate>{{ pub_date }}</pubDate>{% endif %}
<channel>
<title>{{ title }}</title>
{% if link %}<link>{{ link }}</link>{% endif %}
<atom:link href="{{ rootlink }}/rss" rel="self" type="application/rss+xml"/>
{% if language %}<language>{{ language }}</language>{% endif %}
{% if description %}<description>{{ description }}</description>{% endif %}
{% if rfc822_pubdate %}<pubDate>{{ rfc822_pubdate }}</pubDate>{% endif %}

0 comments on commit 55cd406

Please sign in to comment.