forked from adamlaska/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocument_material.html
More file actions
127 lines (108 loc) · 3.53 KB
/
Copy pathdocument_material.html
File metadata and controls
127 lines (108 loc) · 3.53 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
{% extends "base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin %}
{% load ietf_filters %}
{% block title %}{{ doc.title }}{% endblock %}
{% block content %}
{% origin %}
{{ top|safe }}
{% include "doc/revisions_list.html" %}
<table class="table table-condensed">
<thead id="message-row">
<tr>
{% if doc.rev != latest_rev %}
<th colspan="4" class="alert-warning"> The information below is for an old version of the document</th>
{% else %}
<th colspan="4"> </th>
{% endif %}
</tr>
</thead>
<tr>
<th>{% if doc.meeting_related %}Meeting{% endif %} {{ doc.type.name }}</th>
<td class="edit"></td>
<td>
{{ doc.group.name }}
<a href="{{ doc.group.about_url }}">({{ doc.group.acronym }})</a> {{ doc.group.type.name }}
{% if snapshot %}
<span class="label label-warning">Snapshot</span>
{% endif %}
</td>
</tr>
<tr>
<th>Title</th>
<td class="edit">
{% if not snapshot and can_manage_material %}
{% doc_edit_button "material_edit" name=doc.name action="title" %}
{% endif %}
</td>
<td>{{ doc.title }}</td>
</tr>
{% if doc.abstract %}
<tr>
<th>Abstract</th>
<td class="edit">
{% if not snapshot and can_manage_material %}
{% doc_edit_button "material_edit" name=doc.name action="abstract" %}
{% endif %}
</td>
<td>{{ doc.abstract|format_snippet }}</td>
</tr>
{% endif %}
<tr>
<th>State</th>
<td class="edit">
{% if not snapshot and can_manage_material %}
{% doc_edit_button "material_edit" name=doc.name action="state" %}
{% endif %}
</td>
<td>{{ doc.get_state.name }}</td>
</tr>
{% if other_types %}
<tr>
<th>Other versions</th>
<td class="edit"></td>
<td>
{% for t, url in other_types %}
<a href="{{ url }}">{{ t }}</a>{% if not forloop.last %},{% endif %}
{% endfor %}
</td>
</tr>
{% endif %}
{% if presentations or can_manage_material %}
<tr>
<th>On Agenda</th>
<td class="edit">
{% if not snapshot and can_manage_material %}
{% doc_edit_button "material_presentations" name=doc.name %}
{% endif %}
</td>
<td>
{% if presentations %}
{% for pres in presentations %}{{ pres.session.short_name }} at {{ pres.session.meeting }} {% if pres.rev != doc.rev %}(version -{{ pres.rev }}){% endif %}{% if not forloop.last %}, {% endif %}{% endfor %}
{% else %}
None
{% endif %}
</td>
</tr>
{% endif %}
<tr>
<th>Last updated</th>
<td class="edit"></td>
<td>{{ doc.time|date:"Y-m-d" }}</td>
</tr>
</table>
<p class="buttonlist">
{% if not snapshot and can_manage_material %}
<a class="btn btn-default" href="{% url "material_edit" name=doc.name action="revise" %}">Upload New Revision</a>
{% endif %}
</p>
<h2>{% if doc.meeting_related %}Meeting{% endif %} {{ doc.type.name }}<br><small>{{ doc.name }}</small></h2>
{% if doc.rev and content != None %}
{{ content|fill:"80"|safe|linebreaksbr|keep_spacing|sanitize_html|safe }}
{% else %}
<p>Not available as plain text.</p>
{% if other_types %}
<p class="download-instead"><a href="{{ other_types.0.1 }}">Download as {{ other_types.0.0.upper }}</a></p>
{% endif %}
{% endif %}
{% endblock %}