forked from adamlaska/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathemail_aliases.html
More file actions
50 lines (50 loc) · 1.7 KB
/
email_aliases.html
File metadata and controls
50 lines (50 loc) · 1.7 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
{% extends "base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin textfilters static %}
{% block pagehead %}
<link rel="stylesheet" href="{% static "ietf/css/list.css" %}">
{% endblock %}
{% block title %}
Group email aliases
{% if group %}for {{ group.acronym }}{% endif %}
{% endblock %}
{% block content %}
{% origin %}
<h1>
Group email aliases
{% if group %}
<br>
<span class="text-muted">{{ group.acronym }}</span>
{% endif %}
</h1>
{% regroup aliases|dictsort:"acronym" by acronym as alias_list %}
<table class="table table-striped table-sm tablesorter my-3">
<thead>
<tr>
<th data-sort="alias">Alias</th>
<th data-sort="expansion">Expansion</th>
</tr>
</thead>
{% if alias_list %}
<tbody>
{% for alias in alias_list %}
{% for item in alias.list %}
<tr>
<td>
{% with alias.grouper|add:item.alias_type|default:'' as x %}
{% with x|add:"@"|add:ietf_domain as email %}
{{ email|linkify }}
{% endwith %}
{% endwith %}
</td>
<td>{{ item.expansion|linkify }}</td>
</tr>
{% endfor %}
{% endfor %}
</tbody>
{% endif %}
</table>
{% endblock %}
{% block js %}
<script src="{% static "ietf/js/list.js" %}"></script>
{% endblock %}