Skip to content
Snippets Groups Projects
Commit a9f4a004 authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-5204: fixing contacts

parent 973a0fa1
No related branches found
No related tags found
1 merge request!122ISTWCMS-5204: fixing contacts
...@@ -4,16 +4,16 @@ ...@@ -4,16 +4,16 @@
} %} } %}
{% block details_summary %} {% block details_summary %}
{% if contact.title %} {% if contact.header.title %}
<h2 class="uw-contact__h2"> <h2 class="uw-contact__h2">
<a href="{{ contact.url }}"> <a href="{{ contact.url }}">
{{ contact.title }} {{ contact.header.title }}
</a> </a>
</h2> </h2>
{% endif %} {% endif %}
{% if contact.position %} {% if contact.header.position %}
<span class="uw-contact__position"> <span class="uw-contact__position">
{{ contact.position }} {{ contact.header.position }}
</span> </span>
{% endif %} {% endif %}
{% endblock %} {% endblock %}
...@@ -21,79 +21,48 @@ ...@@ -21,79 +21,48 @@
<div class="uw-contact__content"> <div class="uw-contact__content">
{% if contact.image %} {% if contact.image %}
<div class="uw-contact__image"> <div class="uw-contact__image">
<img src="{{ contact.image.uri }}" alt="{{ contact.title }}" /> <img src="{{ contact.image.uri }}" alt="{{ contact.header.title }}" />
</div> </div>
{% endif %} {% endif %}
<div class="uw-contact__info"> <div class="uw-contact__info">
{% if contact.email or contact.phone %} {% if contact.footer.contact_info.email or contact.footer.contact_info.phone %}
<div class="uw-contact__phone-email"> <div class="uw-contact__phone-email">
{% if contact.email %}
{% if contact.footer.contact_info.email %}
<div class="uw-contact__email"> <div class="uw-contact__email">
<a href="mailto:{{ contact.email }}">{{ contact.email }}</a> <a href="mailto:{{ contact.footer.contact_info.email }}">{{ contact.footer.contact_info.email }}</a>
</div> </div>
{% endif %} {% endif %}
{% if contact.phone %}
<div class="uw-contact__phone"> {% if contact.footer.contact_info.phone %}
{{ contact.phone }} <div class="uw-contact__phone">
</div> {{ contact.footer.contact_info.phone }}
{% endif %} </div>
</div> {% endif %}
</div>
{% endif %} {% endif %}
{% if contact.location %}
{% if contact.footer.contact_info.location %}
<div class="uw-contact__location"> <div class="uw-contact__location">
<span class="uw-label">Location:</span> <span class="uw-label">Location:</span>
{{ contact.location }} {{ contact.footer.contact_info.location }}
</div> </div>
{% endif %} {% endif %}
{% if contact.contact_for %}
<div class="uw-contact__contact-for"> {% if contact.footer.links.profile %}
<span class="uw-label">Contact for:</span>
{{ contact.contact_for }}
</div>
{% endif %}
{% if contact.link_profile %}
<div class="uw-contact__profile"> <div class="uw-contact__profile">
<span class="uw-label">Link to profile:</span> <span class="uw-label">Link to profile:</span>
<a href="{{ contact.link_profile.uri }}"> <a href="{{ contact.footer.links.profile.uri }}">
{% if contact.link_profile.title %} {% if contact.footer.links.profile.title %}
{{ contact.link_profile.title }} {{ contact.footer.links.profile.title }}
{% else %} {% else %}
{{ contact.title }} {{ contact.header.title }}
{% endif %}
</a>
</div>
{% endif %}
{% if contact.groups %}
<div class="uw-contact__groups">
<span class="uw-label">Group(s):</span>
{% for group in contact.groups %}
{% if loop.index0 > 0 %}
, {{ group.title }}
{% else %}
{{ group.title }}
{% endif %}
{% endfor %}
</div>
{% endif %}
{% if contact.personal_website %}
<div class="uw-contact__personal-website">
<strong>Link to personal website:</strong><br />
<a href="{{ contact.personal_website.uri }}">
{% if contact.personal_website.title %}
{{ contact.personal_website.title }}
{% else %}
{{ contact.title }}
{% endif %} {% endif %}
</a> </a>
</div> </div>
{% endif %} {% endif %}
</div> </div>
</div> </div>
{% if contact.additional_info %}
<div class="uw-contact__additional-info">
{{ contact.additional_info }}
</div>
{% endif %}
{% endblock %} {% endblock %}
{% endembed %} {% endembed %}
</div> </div>
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