From 53280a14238d27c8623339b2db892b58c4045b6b Mon Sep 17 00:00:00 2001 From: Nicolas Joyard <joyard.nicolas@gmail.com> Date: Fri, 15 Apr 2016 14:43:15 +0200 Subject: [PATCH] Fix rep template for missing start/end date --- templates/representatives/representative_detail.haml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/templates/representatives/representative_detail.haml b/templates/representatives/representative_detail.haml index 96f7c0e4..2775cb9d 100644 --- a/templates/representatives/representative_detail.haml +++ b/templates/representatives/representative_detail.haml @@ -48,8 +48,12 @@ {{ mandate.group.name }} - if mandate.group.abbreviation {{ mandate.group.abbreviation }} - %td= mandate.begin_date|mandate_date:'d/m/Y' - %td= mandate.end_date|mandate_date:'d/m/Y' + %td + - if mandate.begin_date + = mandate.begin_date|mandate_date:'d/m/Y' + %td + - if mandate.end_date + = mandate.end_date|mandate_date:'d/m/Y' %td= mandate.constituency.name .positions -- GitLab