Skip to content

Commit ca1fc8b

Browse files
committed
Increase the set of information being returned on the atom viewer to reflect IETF specific information.
- Legacy-Id: 5510
1 parent 7ef255b commit ca1fc8b

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

ietf/templates/community/public/atom.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,23 @@
2525
{%autoescape off %}
2626
<content type="html">{{ entry.desc|linebreaksbr|force_escape }}</content>
2727
{%endautoescape %}
28+
<ietf xmlns="http://ietf.org/Atom/DataTracker">
29+
<type>{{ entry.type }}</type>
30+
{% if entry.doc.stream.slug %}<Stream>{{ entry.doc.stream.slug }}</Stream>{% endif %}
31+
<Group>{{ entry.doc.group.acronym }}</Group>
32+
{% if entry.doc.shepherd.name %}<Shepherd>{{entry.doc.shepherd.name }}</Shepherd>{% endif %}
33+
{% if entry.doc.ad.name %}<AD>{{entry.doc.ad.name}}</AD>{% endif %}
34+
{% for state in entry.doc.states.all %}
35+
<State type="{{ state.type }}" slug="{{ state.slug }}"/>
36+
{% endfor %}
37+
{% for tag in entry.doc.tags.objects %}
38+
<Tag> {{ tag.slug }} </Tag>
39+
{% endfor %}
40+
{% if entry.type == "new_revision" %}
41+
<Abstract>{{entry.doc.abstract}}</Abstract>
42+
<Version>{{entry.doc.rev}}</Version>
43+
{% endif %}
44+
</ietf>
2845
</entry>
2946
{% endfor %}
3047

0 commit comments

Comments
 (0)