From f5b911837b9e5ec0be2645843cd942e3a124f85a Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 26 Oct 2015 18:41:23 +0000 Subject: [PATCH] Don't show a company name without a role --- source/testimonials.html.twig | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source/testimonials.html.twig b/source/testimonials.html.twig index d7f2cf45..3754af34 100644 --- a/source/testimonials.html.twig +++ b/source/testimonials.html.twig @@ -102,8 +102,12 @@ testimonials:

{{ testimonial.name }}

- {% if testimonial.role or company.name %}{% spaceless %} -

+ {% if testimonial.role and not company.name %} +

+ {{ testimonial.role }} +

+ {% elseif testimonial.role and company.name %}{% spaceless %} +

{{ testimonial.role }} at {% if company.url %} {{ company.name }}