datatracker/ietf/templates/doc/document_review.html
Lars Eggert 5f8d4ed718
More HTML nitfixing (#3934)
* Unicode messages are triggered by both db content and tests

* Make ids unique

* Avoid "No value found" message on page

* Strip HTML from history entries, it's often broken

* Check HTML sources for occurrences of "** No value found for" and fix them

* Fix another occurrence of "** No value found for"

* Fix more occurrences of "** No value found for"

* Fix document revision stripping

* Force breaks of long (garbage) words

* Check URL validity before urlizing them

* Handle some additional corner cases

* Linkify action items

* Don't create profile/email links for System

* Handle headings with HTML elements in them better

* Fix comment

* Fix another occurrence of "** No value found for"

* Better I-D URLization that handles more edge cases. Also, test for them.

* Remove print

* Handle charters better

* Cache for one day
2022-05-10 12:37:14 -05:00

61 lines
2.4 KiB
HTML

{% extends "base.html" %}
{# Copyright The IETF Trust 2016-2019, All Rights Reserved #}
{% load origin %}
{% load static %}
{% load ietf_filters %}
{% load textfilters %}
{% block title %}{{ doc.title }}{% endblock %}
{% block content %}
{% origin %}
{{ top|safe }}
{% include "doc/revisions_list.html" %}
{% if review_req %}
{% include "doc/review/request_info.html" %}
{% else %}
<div class="alert alert-warning my-3">This review has no associated review request</div>
{% endif %}
{% if doc.rev != latest_rev %}
<div class="alert alert-warning my-3">The information below is for an old version of the document.</div>
{% endif %}
{% if doc.get_state_slug != "active" or other_reviews %}
<table class="table table-sm table-borderless">
<tbody class="meta border-top">
{% if doc.get_state_slug != "active" %}
<tr>
<td></td>
<th scope="row">State</th>
<td class="edit"></td>
<td>
{% if doc.get_state.name %}
{{ doc.get_state.name }}
{% else %}
<span class="text-muted">(None)</span>
{% endif %}
</td>
</tr>
{% endif %}
{% if other_reviews %}
<tr>
<td></td>
<th scope="row">Other reviews</th>
<td class="edit"></td>
<td>
{% for review_assignment in other_reviews %}
{% include "doc/review_assignment_summary.html" with current_doc_name=review_assignment.review_request.doc.name current_rev=review_assignment.reviewed_rev %}
{% endfor %}
</td>
</tr>
{% endif %}
</tbody>
</table>
{% endif %}
{% if doc.rev and content != None %}
<div class="card mt-5">
<div class="card-header">{{ doc.name }}-{{ doc.rev }}</div>
<div class="card-body">
<pre class="pasted">{{ content|maybewordwrap|urlize_ietf_docs|linkify }}</pre>
</div>
</div>
{% endif %}
{% endblock %}