Skip to content

Commit e815b87

Browse files
committed
Refined the template used by the person-link template tag to do better for document authors without an email address.
- Legacy-Id: 18613
1 parent c296b0b commit e815b87

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
{# Copyright The IETF Trust 2020, All Rights Reserved #}{% spaceless %}
2+
{% if email %}
23
<a {% if title %}title="{{ title }}"{% endif %} href="{% url 'ietf.person.views.profile' email_or_name=email %}">
34
<span class="{{class}}">{{ plain_name }}</span>
45
</a>&nbsp;<a href="mailto:{{ email|urlencode }}">
56
<span class="fa fa-envelope-o tiny"></span>
67
</a>
8+
{% elif name %}
9+
<a {% if title %}title="{{ title }}"{% endif %} href="{% url 'ietf.person.views.profile' email_or_name=name %}">
10+
<span class="{{class}}">{{ plain_name }}</span>
11+
</a>
12+
{% else %}
13+
<span class="{{class}}">{{ plain_name }}</span>
14+
{% endif %}
715
{% endspaceless %}

0 commit comments

Comments
 (0)