datatracker/ietf/templates/community/atom.xml
Ole Laursen 5f4082d595 Overhaul of the community list code.
From a user perspective: Use friendlier URLs for lists. Reuse the
search results table for displaying lists. Simplify the management
pages and improve the search rule UI to help fill in the values and
validating them, instead of just providing a text field. Fixes #1874.
Add an explicit button for adding individual documents. Include all
changes in the document change streams, not just some changes. Fix a
concurrency issue that allows changed documents to escape the search
rules. Don't create an empty list just be logging in.

From a code maintenance perspective: Clean up the models. Replace the
background caching scheme with direct queries. Get rid of a big chunk
of code. Speed up the code that adds track buttons to search results.
Add tests of all community views. Fixes #1422. Also fix some minor
bugs and oddities here and there.

There's still some work to do with respect to integrating the group
lists better.
 - Legacy-Id: 10921
2016-03-14 10:44:57 +00:00

53 lines
2 KiB
XML

<?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>