forked from adamlaska/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocument_writeup.html
More file actions
41 lines (35 loc) · 934 Bytes
/
document_writeup.html
File metadata and controls
41 lines (35 loc) · 934 Bytes
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
{% extends "base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin %}
{% load ietf_filters %}
{% load textfilters %}
{% block title %}Writeups for {{ doc.name }}-{{ doc.rev }}{% endblock %}
{% block content %}
{% origin %}
{{ top|safe }}
{% for title, subtitle, writeups in sections %}
<h2>
{{ title|capfirst_allcaps }}
{% if subtitle %}
<br><small>{{ subtitle|safe }}</small>
{% endif %}
</h2>
{% for name, text, url in writeups %}
{% if text %}
<pre>{{ text|linkify }}</pre>
{% endif %}
<p>
{% if can_edit %}
<a href="{{ url }}" class="btn btn-default">
{% if text %}
Edit
{% else %}
Generate
{% endif %}
{{ name|lower_allcaps }}
</a>
{% endif %}
</p>
{% endfor %}
{% endfor %}
{% endblock content %}