[Buildbot-devel] Suggested change to HTML template to allow browsers to know that an RSS feed is avaiable
Matisse Enzer
menzer at apple.com
Wed Aug 18 16:49:01 UTC 2010
Hi folks,
I'd like to propose a small change to the layout.html template. The change allows browsers to know that there is an RSS feed available for the web page(s) created by the buildbot to show build status and history.
This is as simple as adding a <link> tag in the <head>, like this:
<link rel="alternate" type="application/rss+xml" title="RSS" href="rss">
This allows browsers (such as Safari) to know that an RSS feed is available - in Safari's case an RSS badge will be showing in the location bar - see the red circled area in this screenshot:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: home.png
Type: image/png
Size: 14967 bytes
Desc: not available
URL: <http://buildbot.net/pipermail/devel/attachments/20100818/d85ef620/attachment.png>
-------------- next part --------------
Here's the change my team is using in buildbot/status/web/templates/layout.html:
--- layout.html.dist 2010-08-13 09:10:42.000000000 -0700
+++ layout.html 2010-08-13 09:12:51.000000000 -0700
@@ -14,6 +14,7 @@
{% endif %}
<title>{{ title|e }}</title>
<link rel="stylesheet" href="{{ stylesheet }}" type="text/css" />
+ <link rel="alternate" type="application/rss+xml" title="RSS" href="rss">
{% endblock %}
</head>
<body class="interface">
A similar change could be made for the JSON format as well.
More information about the devel
mailing list