--- a/templates/base.html Wed Oct 26 07:38:07 2016 +0800
+++ b/templates/base.html Wed Oct 26 18:42:45 2016 +0800
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% block title %}{% end %}{% block extra-title %} - Cat and Owl's online linter{% end %}</title>
+ {% block alternate %}{% end %}
<link rel="shortcut icon" href="/static/favicon-cat.png">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/uikit/2.26.4/css/uikit.almost-flat.min.css" integrity="sha384-48XAELI+4suEKjYIXCNBu24eiwixJZ07IZznit90wBrOErxxeIKkEs1pJuwTUD/m" crossorigin="anonymous">
<link rel="stylesheet" href="/static/main.css">
--- a/templates/project.html Wed Oct 26 07:38:07 2016 +0800
+++ b/templates/project.html Wed Oct 26 18:42:45 2016 +0800
{% block title %}{{ project.name }}{% end %}
+ <link rel="alternate" href="{{ project.get_url() }}/atom" type="application/atom+xml" title="{{ project.name }} feed">
<div class="uk-container uk-container-center uk-margin-large-top">
<h2>{% module Template('ui/project-link.html', project=project) %}</h2>
--- a/tests/test_viewer.py Wed Oct 26 07:38:07 2016 +0800
+++ b/tests/test_viewer.py Wed Oct 26 18:42:45 2016 +0800
assert '1 error' in response.body
assert '1 warning' in response.body
assert '<a href="#">default</a>' in response.body
+ assert ('<link rel="alternate"'
+ ' href="/example.com/alice/test-viewer/atom"'
+ ' type="application/atom+xml"'
+ ' title="test-viewer feed">') in response.body
response = self.fetch('/example.com/alice/test-viewer/atom')