* fix: Linkify email address lists one-by-one Seems to work around a bug in mozilla/bleach. Fixes #6307 * Cosmetic change * Fix test
67 lines
2.4 KiB
HTML
67 lines
2.4 KiB
HTML
{% extends "group/group_base.html" %}
|
|
{# Copyright The IETF Trust 2015, All Rights Reserved #}
|
|
{% load origin %}
|
|
{% load ietf_filters textfilters %}
|
|
{% load static %}
|
|
{% block pagehead %}
|
|
<link rel="stylesheet" href="{% static "ietf/css/list.css" %}">
|
|
{% endblock %}
|
|
{% block group_content %}
|
|
{% origin %}
|
|
{% if aliases %}
|
|
<h2 class="mt-3">Email aliases</h2>
|
|
<table class="table table-sm table-striped tablesorter">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col" data-sort="alias">Alias</th>
|
|
<th scope="col" data-sort="expansion">Expansion</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for alias in aliases %}
|
|
<tr>
|
|
<td>
|
|
<a href="mailto:{{ group.acronym }}{{ alias.alias_type|default:'' }}@{{ ietf_domain }}">
|
|
{{ group.acronym }}{{ alias.alias_type|default:'' }}@{{ ietf_domain }}
|
|
</a>
|
|
</td>
|
|
<td>{{ alias.expansion|linkify }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% endif %}
|
|
<h2 class="mt-3">Recipient expansions</h2>
|
|
<table class="table table-sm table-striped tablesorter">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col" data-sort="mail">Mail trigger</th>
|
|
<th scope="col" data-sort="to">To</th>
|
|
<th scope="col" data-sort="cc">Cc</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for trigger,desc,to,cc in expansions %}
|
|
<tr>
|
|
<td>
|
|
<a href="{% url 'ietf.mailtrigger.views.show_triggers' trigger %}"
|
|
title="{{ desc }}">{{ trigger }}</a>
|
|
</td>
|
|
<td>
|
|
{% for addr in to %}
|
|
{{ addr|linkify }}{% if not forloop.last %}, {% endif %}
|
|
{% endfor %}
|
|
</td>
|
|
<td>
|
|
{% for addr in cc %}
|
|
{{ addr|linkify }}{% if not forloop.last %}, {% endif %}
|
|
{% endfor %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% endblock %}
|
|
{% block js %}
|
|
<script src="{% static "ietf/js/list.js" %}"></script>
|
|
{% endblock %} |