* 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
70 lines
2.8 KiB
HTML
70 lines
2.8 KiB
HTML
{% extends "base.html" %}
|
|
{# Copyright The IETF Trust 2015, All Rights Reserved #}
|
|
{% load origin %}
|
|
{% load ietf_filters ipr_filters static person_filters textfilters %}
|
|
{% block pagehead %}
|
|
<link rel="stylesheet" href="{% static "ietf/css/list.css" %}">
|
|
{% endblock %}
|
|
{% block title %}History for IPR - {{ ipr.title }}{% endblock %}
|
|
{% block content %}
|
|
{% origin %}
|
|
<h1>
|
|
History for IPR disclosure
|
|
<br>
|
|
<small class="text-muted">{{ ipr.title }}</small>
|
|
</h1>
|
|
{% include "ipr/details_tabs.html" %}
|
|
{% if user|has_role:"Area Director,Secretariat,IANA,RFC Editor" %}
|
|
<p class="buttonlist">
|
|
<a class="btn btn-primary"
|
|
href="{% url 'ietf.ipr.views.add_comment' id=ipr.id %}"
|
|
title="Add comment to history">
|
|
Add comment
|
|
</a>
|
|
<a class="btn btn-primary"
|
|
href="{% url 'ietf.ipr.views.add_email' id=ipr.id %}"
|
|
title="Add email to history">
|
|
Add email
|
|
</a>
|
|
</p>
|
|
{% endif %}
|
|
<table class="table table-sm table-striped tablesorter">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col" data-sort="date">Date</th>
|
|
<th scope="col" data-sort="type">Type</th>
|
|
<th scope="col" data-sort="by">By</th>
|
|
<th scope="col" data-sort="text">Text</th>
|
|
</tr>
|
|
</thead>
|
|
{% if events %}
|
|
<tbody>
|
|
{% for e in events %}
|
|
<tr id="history-{{ e.pk }}">
|
|
<td>{{ e.time|date:"Y-m-d" }}</td>
|
|
<td>
|
|
{{ e.type }}
|
|
{% if e.response_due and e.response_past_due %}
|
|
<i class="bi bi-exclamation-circle" title="Response overdue"></i>
|
|
{% endif %}
|
|
</td>
|
|
<td>{% person_link e.by %}</td>
|
|
<td>
|
|
{% if e.message %}
|
|
{% if e.response_due %}<span class="badge bg-info">Response due {{ e.response_due|date:"Y-m-d" }}</span>{% endif %}
|
|
{# FIXME: can't do format_history_text, because that inserts a <div> into the <pre>, which is illegal. Need to rework the snippeting. #}
|
|
<pre>{{ e.message|render_message_for_history|urlize_ietf_docs|linkify }}</pre>
|
|
{% else %}
|
|
{{ e.desc|format_history_text }}
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
{% endif %}
|
|
</table>
|
|
{% endblock %}
|
|
{% block js %}
|
|
<script src="{% static "ietf/js/list.js" %}"></script>
|
|
{% endblock %}
|