Skip to content

Commit fb3645f

Browse files
committed
Merged in [17178] from housley@vigilsec.com:
Turn text names into links on the stats pages. Fixes ietf-tools#2854 - Legacy-Id: 17190 Note: SVN reference [17178] has been migrated to Git commit dd07878
2 parents b14cba5 + dd07878 commit fb3645f

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

ietf/person/name.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright The IETF Trust 2011-2019, All Rights Reserved
1+
# Copyright The IETF Trust 2011-2020, All Rights Reserved
22
# -*- coding: utf-8 -*-
33

44

@@ -63,6 +63,10 @@ def name_parts(name):
6363
# Handle reverse-order names with uppercase surname correctly
6464
if re.search("^[A-Z-]+$", first):
6565
first, last = last, first.capitalize()
66+
# Handle exception for RFC Editor
67+
if (prefix, first, middle, last, suffix) == ('', 'Editor', '', 'Rfc', ''):
68+
first = 'RFC'
69+
last = 'Editor'
6670
return prefix, first, middle, last, suffix
6771

6872
def initials(name):

ietf/templates/stats/includes/number_with_details_cell.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% if content_limit and count <= content_limit %}
22
{% for n in names %}
3-
{{ n }}<br>
3+
<a href="{% url 'ietf.person.views.profile' email_or_name=n %}">{{ n }}</a><br>
44
{% endfor %}
55
{% else %}
66
{# <a class="popover-details" href="" data-elements="{% for n in names|slice:":20" %}{{ n }}{% if not forloop.last %}|{% endif %}{% endfor %}" data-sliced="{% if count > 20 %}1{% endif %}">{{ count }}</a> #}

0 commit comments

Comments
 (0)