forked from adamlaska/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathknown_countries_list.html
More file actions
47 lines (39 loc) · 1.25 KB
/
known_countries_list.html
File metadata and controls
47 lines (39 loc) · 1.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
{% extends "base.html" %}
{% load origin %}
{% load ietf_filters static bootstrap3 %}
{% block content %}
{% origin %}
<h1>{% block title %}Countries known to the Datatracker{% endblock %}</h1>
<p>In case you think a country or an alias is missing from the list, you can <a href="mailto:{{ settings.SECRETARIAT_ACTION_EMAIL }}">file a ticket</a>.</p>
{% if request.user.is_staff %}
<p>Note: since you're an admin, the country names are linked to their corresponding admin page.</p>
{% endif %}
<table class="table table-condensed table-striped">
<thead>
<tr>
<th>Name</th>
<th>Aliases (lowercase aliases are matched case-insensitive)</th>
</tr>
</thead>
<tbody>
{% for c in countries %}
<tr>
<td>
{% if request.user.is_staff %}
<a href="{% url "admin:name_countryname_change" c.pk %}">
{% endif %}
{{ c.name }}
{% if request.user.is_staff %}
</a>
{% endif %}
</td>
<td>
{% for a in c.aliases %}
{{ a.alias }}{% if not forloop.last %},{% endif %}
{% endfor %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}