Skip to content

Commit 539cfce

Browse files
committed
Use <link rel="alternate"> for atom autodiscovery for comments,
last-call, iesg-minutes. Link explicitly to the atom feed for comments. - Legacy-Id: 863
1 parent 11d4f15 commit 539cfce

6 files changed

Lines changed: 17 additions & 3 deletions

File tree

ietf/idtracker/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def status(request):
189189

190190
def last_call(request):
191191
queryset = IDInternal.objects.filter(primary_flag=1).filter(cur_state__state__in=('In Last Call', 'Waiting for Writeup', 'Waiting for AD Go-Ahead')).order_by('cur_state', 'status_date', 'ballot_id')
192-
return object_list(request, template_name="idtracker/status_of_items.html", queryset=queryset, extra_context={'title': 'Documents in Last Call'})
192+
return object_list(request, template_name="idtracker/status_of_items.html", queryset=queryset, extra_context={'title': 'Documents in Last Call', 'lastcall': 1})
193193

194194
def redirect_id(request, object_id):
195195
'''Redirect from historical document ID to preferred filename url.'''
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
{# Copyright The IETF Trust 2007, All Rights Reserved #}
2-
{% if obj.ballot %}IESG Evaluation {{ obj.get_ballot_display.upper }}{% else %}Comment{% endif %} from {{ obj.get_author }}
2+
[{{ obj.get_username }}] {{ obj.comment_text|removetags:"b"|truncatewords:"15" }}
3+
{% if obj.ballot %}[[ IESG {{ obj.get_ballot_display.upper }} ]]{% endif %}

ietf/templates/idtracker/base.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
{% else %}
99
<link rel="icon" href="/images/ietf-icon.bmp" />
1010
{% endifnotequal %}
11+
{% block head %}{% endblock %}
1112

1213
<STYLE TYPE="text/css">
1314
<!--

ietf/templates/idtracker/idinternal_detail.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55

66
{% block title %}-- {{ object.document.filename }}{% endblock %}
77

8+
{% block head %}
9+
<link rel="alternate" type="application/atom+xml" href="/feed/comments/{{ object.document.filename }}/">
10+
{% endblock %}
11+
812
{% block idcontent %}
913
<table width="90%" cellpading="1" cellspacing="0">
1014
<tr>
@@ -241,7 +245,7 @@
241245
</table>
242246
{% endif %}
243247

244-
<h3>Comment Log</h3>
248+
<h3>Comment Log <span style="font-size: 80%">[<a href="/feed/comments/{{ object.document.filename }}/">atom feed</a>]</span></h3>
245249

246250
<table cellpadding="1" cellspacing="1" border="0">
247251
<tr bgcolor="#7DC189">

ietf/templates/idtracker/status_of_items.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{# Copyright The IETF Trust 2007, All Rights Reserved #}
22
{% extends "base.html" %}
33

4+
{% block head %}{% if lastcall %}
5+
<link rel="alternate" type="application/atom+xml" href="/feed/last-call/">
6+
{% endif %}{% endblock %}
7+
48
{% block title %}{{ title }}{% endblock %}
59

610
{% block content %}

ietf/templates/iesg/telechatminutes_archive.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{# Copyright The IETF Trust 2007, All Rights Reserved #}
22
{% extends "base.html" %}
33

4+
{% block head %}
5+
<link rel="alternate" type="application/atom+xml" href="/feed/iesg-minutes/">
6+
{% endblock %}
7+
48
{% block title %}IESG Telechat Minutes{% endblock %}
59

610
{% block content %}

0 commit comments

Comments
 (0)