Don't show a company name without a role

This commit is contained in:
Oliver Davies 2015-10-26 18:41:23 +00:00
parent 101471dd10
commit f5b911837b

View file

@ -102,8 +102,12 @@ testimonials:
<article class="testimonial">
<h2 class="testimonial__name">{{ testimonial.name }}</h2>
{% if testimonial.role or company.name %}{% spaceless %}
<p>
{% if testimonial.role and not company.name %}
<p class="lead">
{{ testimonial.role }}
</p>
{% elseif testimonial.role and company.name %}{% spaceless %}
<p class="lead">
{{ testimonial.role }} at
{% if company.url %}
<a href="{{ company.url }}" title="{{ company.name }}">{{ company.name }}</a>