* Update vnu.jar * Fix py2 -> py3 issue * Run pyupgrade * test: Add default-jdk to images * test: Add option to also validate HTML with vnu.jar Since it's already installed in bin. Don't do this by default, since it increases the time needed for tests by ~50%. * fix: Stop the urlizer from urlizing in linkified mailto: text * More HTML fixes * More HTML validation fixes * And more HTML fixes * Fix floating badge * Ignore unicode errors * Only URLize docs that are existing * Final fixes * Don't URLize everything during test-crawl * Feed HTML into vnu using python rather than Java to speed things up * Allow test-crawl to start vnu on a different port * Increase retry count to vnu. Restore batch size to 30. * More HTML validation fixes * Use urllib3 to make requests to vnu, since overriding requests_mock is tricky * Undo commit of unmodified file * Also urlize ftp links * Fix matching of file name * More HTML fixes * Add `is_valid_url` filter * weekday -> data-weekday * urlencode URLs * Add and use vnu_fmt_message. Bump vnu max buffer. * Simplify doc_exists * Don't add tab link to mail archive if the URL is invalid * Run urlize_ietf_docs before linkify Reduces the possibility of generating incorrect HTML * Undo superfluous change * Runner fixes * Consolidate vnu message filtering into vnu_filter_message * Correctly handle multiple persons with same name * Minimze diff * Fix HTML nits * Print source snippet in vnu_fmt_message * Only escape if there is something to escape * Fix snippet * Skip crufty old IPR declarations * Only include modal when needed. Add handles. * Fix wordwrap+linkification * Update ietf/doc/templatetags/ietf_filters.py * Update ietf/doc/templatetags/tests_ietf_filters.py * Don't right-align second column
61 lines
2 KiB
HTML
61 lines
2 KiB
HTML
{% extends "submit/submit_base.html" %}
|
|
{# Copyright The IETF Trust 2015, All Rights Reserved #}
|
|
{% load origin static textfilters ietf_filters %}
|
|
{% block title %}Submission email{% endblock %}
|
|
{% load ietf_filters %}
|
|
{% block submit_content %}
|
|
{% origin %}
|
|
<h2 id="approvals">Email for {{ submission.name }}</h2>
|
|
<dl id="email-details" class="emails row my-3">
|
|
<dt class="col-sm-2">
|
|
Uploaded
|
|
</dt>
|
|
<dd class="col-sm-10">
|
|
{{ message.time }}
|
|
</dd>
|
|
<dt class="col-sm-2">
|
|
Date
|
|
</dt>
|
|
<dd class="col-sm-10">
|
|
{{ message.message.time }}
|
|
</dd>
|
|
<dt class="col-sm-2">
|
|
From
|
|
</dt>
|
|
<dd class="col-sm-10">
|
|
{{ message.message.frm|linkify }}
|
|
</dd>
|
|
<dt class="col-sm-2">
|
|
Subject
|
|
</dt>
|
|
<dd class="col-sm-10">
|
|
{{ message.message.subject }}
|
|
</dd>
|
|
<dt class="col-sm-2">
|
|
Message
|
|
</dt>
|
|
<dd class="col-sm-10">
|
|
<pre>{{ message.message.body|urlize_ietf_docs|linkify|linebreaksbr }}</pre>
|
|
</dd>
|
|
<dt class="col-sm-2">
|
|
Attachment
|
|
</dt>
|
|
<dd class="col-sm-10">
|
|
{% for a in attachments %}
|
|
<a id="attach{{ submission.pk }}"
|
|
href="{% url "ietf.submit.views.show_submission_email_attachment" submission_id=submission.pk message_id=message.pk filename=a.filename %}">
|
|
{{ a.filename }}
|
|
</a>
|
|
<br>
|
|
{% endfor %}
|
|
</dd>
|
|
</dl>
|
|
{% if user|has_role:"Secretariat" %}
|
|
<a id="reply{{ submission.pk }}"
|
|
class="btn btn-primary"
|
|
href="{% url "ietf.submit.views.send_submission_email" submission_id=submission.pk message_id=message.pk %}"
|
|
title="Reply">
|
|
<i class="bi bi-envelope" aria-hidden="true"></i> Reply
|
|
</a>
|
|
{% endif %}
|
|
{% endblock %} |