From 86da8b75d2d341d468ccbb4574d21367a332a535 Mon Sep 17 00:00:00 2001 From: "Jonathan S. Katz" Date: Fri, 6 Nov 2020 09:38:06 -0500 Subject: [PATCH] Handle empty company URLs in contributor profiles If a URL is provider, continue to provide a link, otherwise just render the company name. Started by Daniel Gustafsson , finished by me. --- templates/contributors/list.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/templates/contributors/list.html b/templates/contributors/list.html index 201afb3d..4ab4fda8 100644 --- a/templates/contributors/list.html +++ b/templates/contributors/list.html @@ -31,7 +31,12 @@ {{c.firstname}} {{c.lastname}} {%if t.showemail and c.email%}({{c.email|hidemail}}){%endif%} {%if c.company %}
- {{c.company}}{%endif%} + {% if c.companyurl %} + {{c.company}} + {% else %} + {{c.company}} + {% endif %} + {% endif %}
{{c.location}}