forked from adamlaska/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathatom.xml
More file actions
52 lines (45 loc) · 2 KB
/
atom.xml
File metadata and controls
52 lines (45 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title type="text">{{ title }}</title>
<subtitle type="text">{{ subtitle }}</subtitle>
<id>{{ id }}</id>
<updated>{{ updated|date:"Y-m-d\TH:i:sO" }}</updated>
<link rel="alternate" type="text/html" hreflang="en" href="https://{{ request.get_host }}/"/>
<link rel="self" type="application/atom+xml" href="https://{{ request.get_host }}{{ request.get_full_path }}"/>
{% for entry in entries %}
<entry>
{% if entry.type == 'sent_last_call' %}
<title>Last Call Issued: {{ entry.doc.title }}</title>
{% else %}
<title>{{ entry.doc.title }}</title>
{% endif %}
<link href="{{ entry.doc.get_absolute_url }}"/>
<id>{{ entry.id }}</id>
<updated>{{ entry.time|date:"Y-m-d\TH:i:sO" }}</updated>
<published>{{ entry.time|date:"Y-m-d\TH:i:sO" }}</published>
<author>
<name>{{ entry.by }}</name>
</author>
{%autoescape off %}
<content type="html">{{ entry.desc|linebreaksbr|force_escape }}</content>
{%endautoescape %}
<ietf xmlns="http://ietf.org/atom/datatracker/community">
<type>{{ entry.type }}</type>
{% if entry.doc.stream.slug %}<stream>{{ entry.doc.stream.slug }}</stream>{% endif %}
<group>{{ entry.doc.group.acronym }}</group>
{% if entry.doc.shepherd %}<shepherd>{{ entry.doc.shepherd.person.name }}</shepherd>{% endif %}
{% if entry.doc.ad %}<ad>{{entry.doc.ad.name}}</ad>{% endif %}
{% for state in entry.doc.states.all %}
<state type="{{ state.type }}">{{ state.slug }}</state>
{% endfor %}
{% for tag in entry.doc.tags.objects %}
<tag>{{ tag.slug }}</tag>
{% endfor %}
{% if entry.type == "new_revision" %}
<abstract>{{entry.doc.abstract}}</abstract>
<version>{{entry.doc.rev}}</version>
{% endif %}
</ietf>
</entry>
{% endfor %}
</feed>