From 8d91801536a9a76f964a3f4ca4a4e6e982627c7c Mon Sep 17 00:00:00 2001 From: Lars Eggert Date: Wed, 16 Mar 2022 11:56:45 +0200 Subject: [PATCH 1/2] fix: Always word-wrap person names in person_link links Defaulting to "text-nowrap" causes too many issues on narrow screens. --- ietf/templates/iesg/discusses.html | 4 ++-- ietf/templates/iesg/past_documents.html | 4 ++-- ietf/templates/meeting/requests.html | 4 ++-- ietf/templates/person/person_link.html | 3 +-- ietf/templates/person/photo.html | 2 +- 5 files changed, 8 insertions(+), 9 deletions(-) diff --git a/ietf/templates/iesg/discusses.html b/ietf/templates/iesg/discusses.html index 9f3c0639988..ef9fcde7c44 100644 --- a/ietf/templates/iesg/discusses.html +++ b/ietf/templates/iesg/discusses.html @@ -57,11 +57,11 @@

IESG discuss positions

{% endif %}"> {{ doc.displayname_with_link }} {% include "doc/search/status_columns.html" %} - {% person_link doc.ad nowrap=False %} + {% person_link doc.ad %} {% for p in doc.blocking_positions %} {% if p.is_old_pos %}{% endif %} - {% person_link p.balloter nowrap=False %} + {% person_link p.balloter %} ({% if p.discuss_time %}{{ p.discuss_time|timesince_days }} days ago{% endif %} {% if doc.get_state_url != "rfc" and p.rev != doc.rev %}for -{{ p.rev }}{% endif %})
diff --git a/ietf/templates/iesg/past_documents.html b/ietf/templates/iesg/past_documents.html index 89373faabff..043e47eba86 100644 --- a/ietf/templates/iesg/past_documents.html +++ b/ietf/templates/iesg/past_documents.html @@ -46,11 +46,11 @@

{{ doc.telechat }} {% include "doc/search/status_columns.html" %} - {% person_link doc.ad nowrap=False %} + {% person_link doc.ad %} {% for p in doc.blocking_positions %} {% if p.is_old_pos %}{% endif %} - {% person_link p.balloter nowrap=False %} + {% person_link p.balloter %} ({% if p.discuss_time %}{{ p.discuss_time|timesince_days }} days ago{% endif %} {% if doc.get_state_url != "rfc" and p.rev != doc.rev %}for -{{ p.rev }}{% endif %})
diff --git a/ietf/templates/meeting/requests.html b/ietf/templates/meeting/requests.html index 87c8b7d5620..539082a518b 100644 --- a/ietf/templates/meeting/requests.html +++ b/ietf/templates/meeting/requests.html @@ -58,10 +58,10 @@

{% if session.requested_duration %}{{ session.requested_duration|stringformat:"s"|slice:"0:4" }}{% endif %} {{ session.attendees|default:"" }} - {% person_link session.requested_by_person nowrap=False %} + {% person_link session.requested_by_person %} {% if session.group.ad_role %} - {% person_link session.group.ad_role.person nowrap=False %} + {% person_link session.group.ad_role.person %} {% endif %} diff --git a/ietf/templates/person/person_link.html b/ietf/templates/person/person_link.html index 96b89feec54..765b57b5c44 100644 --- a/ietf/templates/person/person_link.html +++ b/ietf/templates/person/person_link.html @@ -1,5 +1,4 @@ -{% if email or name %}{{ name }}{% if email and with_email %} {% endif %}