Skip to content

Commit 06b3838

Browse files
committed
Added a 'no active roles' annotation in the roles section of personal profile pages if there are none.
- Legacy-Id: 14203
1 parent ac69d98 commit 06b3838

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

ietf/templates/person/profile.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ <h1>{{ person.name }} {% if person.ascii != person.name %}<br><small>({{person.a
3737
{% if person.role_set.exists %}
3838
<h2 id="roles">Roles</h2>
3939
<table class="table">
40-
{% for role in person.role_set.all %}
40+
{% if person.role_set.count %}
41+
{% for role in person.role_set.all %}
4142
{% if role.group.state_id == 'active' or role.group.state_id == 'bof' %}
4243
{% if role.group.acronym != 'secretariat' %}
4344
<tr>
@@ -53,7 +54,10 @@ <h2 id="roles">Roles</h2>
5354
</tr>
5455
{% endif %}
5556
{% endif %}
56-
{% endfor %}
57+
{% endfor %}
58+
{% else %}
59+
{{ person.first_name }} has no active roles as of {{ today }}.
60+
{% endif %}
5761
</table>
5862
{% endif %}
5963
</div>

0 commit comments

Comments
 (0)