forked from ietf-tools/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtrigger.html
More file actions
50 lines (50 loc) · 2.25 KB
/
trigger.html
File metadata and controls
50 lines (50 loc) · 2.25 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 static %}
{% block pagehead %}
<link rel="stylesheet" href="{% static "ietf/css/list.css" %}">
{% endblock %}
{% block title %}Mail triggers{% endblock %}
{% block content %}
{% origin %}
<h1>Mail triggers</h1>
<table class="table table-sm table-striped tablesorter">
<thead>
<tr>
<th scope="col" data-sort="trigger">Trigger</th>
<th scope="col" data-sort="to">Recipients (To)</th>
<th scope="col" data-sort="cc">Recipients (CC)</th>
</tr>
</thead>
<tbody>
{% for mailtrigger in mailtriggers %}
<tr>
<td>
<a href="{% url 'ietf.mailtrigger.views.show_triggers' mailtrigger.slug %}" title="{{ mailtrigger.desc }}">{{ mailtrigger.slug }}</a>
</td>
<td>
{% for recipient in mailtrigger.to.all %}
{% comment %}<span title="{{recipient.desc}}">{{recipient.slug}}</span>{% endcomment %}
<a href="{% url 'ietf.mailtrigger.views.show_recipients' recipient.slug %}"
title="{{ recipient.desc }}">
{{ recipient.slug }}</a>{% if not forloop.last %},{% endif %}
{% endfor %}
</td>
<td>
{% if mailtrigger.cc.exists %}
{% for recipient in mailtrigger.cc.all %}
{% comment %}<span title="{{recipient.desc}}">{{recipient.slug}}</span>{% endcomment %}
<a href="{% url 'ietf.mailtrigger.views.show_recipients' recipient.slug %}"
title="{{ recipient.desc }}">
{{ recipient.slug }}</a>{% if not forloop.last %},{% endif %}
{% endfor %}
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}
{% block js %}
<script src="{% static "ietf/js/list.js" %}"></script>
{% endblock %}