mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-01 15:54:53 +00:00
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:
@ -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>
|
||||
|
Reference in New Issue
Block a user