From 1c1942063b2f66c0ad856f5fdfd85e79ff0cc966 Mon Sep 17 00:00:00 2001 From: JC Date: Fri, 25 Nov 2016 10:11:11 +0100 Subject: [PATCH] Counting messages --- app/views/backoffice/dossiers/show.html.haml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/backoffice/dossiers/show.html.haml b/app/views/backoffice/dossiers/show.html.haml index be50f3318..9acd7d4e0 100644 --- a/app/views/backoffice/dossiers/show.html.haml +++ b/app/views/backoffice/dossiers/show.html.haml @@ -8,7 +8,8 @@ %div.carret-down MESSAGES %div.col-lg-2.col-md-2.count - 2 messages + - message_count = @facade.commentaires.count + = (message_count == 1) ? "1 message" : "#{message_count} messages" %div.body .default_data_block