Skip to content

Commit

Permalink
Add check on contact email
Browse files Browse the repository at this point in the history
  • Loading branch information
libremente committed Aug 20, 2019
1 parent db734cb commit 13daf67
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions _layouts/software-details.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,12 @@ <h3 class="color-content font-serif my-2 my-md-4">
<div class="col-sm">
<p><span class="label">{{ t.software.technical_contact }} </span>
{% for contact in page.publiccode.maintenance.contacts limit: 1 %}
<a href="mailto:{{ contact.email }}">{{ contact.name }}</a>
{{ contact.phone }}
{% if contact.email != nil and contact.email != "" %}
<a href="mailto:{{ contact.email }}">{{ contact.name }}</a>
{% else %}
{{ contact.name }}
{% endif %}
{{ contact.phone }}
{% endfor %}
</p>
</div>
Expand Down Expand Up @@ -420,7 +424,12 @@ <h2>
{% for contact in page.publiccode.maintenance.contacts %}
<div class="col-md">
<p>
<a href="mailto:{{ contact.email }}">{{ contact.name }}</a> {{ contact.phone }}
{% if contact.email != nil and contact.email != "" %}
<a href="mailto:{{ contact.email }}">{{ contact.name }}</a>
{% else %}
{{ contact.name }}
{% endif %}
{{ contact.phone }}
</p>
</div>
{% endfor %}
Expand Down Expand Up @@ -584,4 +593,4 @@ <h2> {{ t.software.interest_related_softwares }} </h2>
</div>
{% endif %}

{% include photoswipe-ui.html %}
{% include photoswipe-ui.html %}

0 comments on commit 13daf67

Please sign in to comment.