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 <daniel@yesql.se>, finished by me.
This commit is contained in:
Jonathan S. Katz
2020-11-06 09:38:06 -05:00
parent 89386d5134
commit 86da8b75d2

View File

@ -31,7 +31,12 @@
<td>{{c.firstname}} {{c.lastname}} {%if t.showemail and c.email%}({{c.email|hidemail}}){%endif%}
{%if c.company %}
<br/>
<a href="{{c.companyurl}}" target="_blank" rel="noopener">{{c.company}}</a>{%endif%}
{% if c.companyurl %}
<a href="{{c.companyurl}}" target="_blank" rel="noopener">{{c.company}}</a>
{% else %}
{{c.company}}
{% endif %}
{% endif %}
<br/>
{{c.location}}
</td>