Skip to content
Snippets Groups Projects
Commit cbebfa52 authored by Lily Yan's avatar Lily Yan
Browse files

ISTWCMS-7200 Display additional emails correctly

parent 7861bacc
No related branches found
No related tags found
1 merge request!249ISTWCMS-7200 Any additional emails appear below the primary email on both the...
...@@ -9,6 +9,9 @@ ...@@ -9,6 +9,9 @@
{% block details_content %} {% block details_content %}
{% if contact_info.email %} {% if contact_info.email %}
<div class="card__contact-info--email"> <div class="card__contact-info--email">
{% if contact_info.emails %}
Primary email:
{% endif %}
<a href="mailto:{{ contact_info.email }}">{{ contact_info.email }}</a> <a href="mailto:{{ contact_info.email }}">{{ contact_info.email }}</a>
</div> </div>
{% endif %} {% endif %}
...@@ -16,7 +19,7 @@ ...@@ -16,7 +19,7 @@
{% for email in contact_info.emails %} {% for email in contact_info.emails %}
{% if email.email %} {% if email.email %}
<div class="card__contact-info--emails"> <div class="card__contact-info--emails">
{{ email.description }}: {{ email.email }} {{ email.description }}: <a href="mailto:{{ email.email }}">{{ email.email }}</a>
</div> </div>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
......
...@@ -28,6 +28,9 @@ ...@@ -28,6 +28,9 @@
{% if contact.footer.contact_info.email %} {% if contact.footer.contact_info.email %}
<div class="uw-contact__email"> <div class="uw-contact__email">
{% if contact.footer.contact_info.emails %}
Primary email:
{% endif %}
<a href="mailto:{{ contact.footer.contact_info.email }}">{{ contact.footer.contact_info.email }}</a> <a href="mailto:{{ contact.footer.contact_info.email }}">{{ contact.footer.contact_info.email }}</a>
</div> </div>
{% endif %} {% endif %}
...@@ -35,7 +38,7 @@ ...@@ -35,7 +38,7 @@
{% for email in contact.footer.contact_info.emails %} {% for email in contact.footer.contact_info.emails %}
{% if email.email %} {% if email.email %}
<div class="uw-contact__emails"> <div class="uw-contact__emails">
{{ email.description }}: {{ email.email }} {{ email.description }}: <a href="mailto:{{ email.email }}">{{ email.email }}</a>
</div> </div>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment