From 297dba6d907234501dd14af92b089d4079ff4be4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Thu, 9 Jan 2014 15:25:31 +0100 Subject: [PATCH] [add] tools for each entry on homepage --- app/views/index.twig | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/app/views/index.twig b/app/views/index.twig index 3319d96..aa62e8a 100644 --- a/app/views/index.twig +++ b/app/views/index.twig @@ -3,18 +3,31 @@ {% block content %} {% set count = entries|length %} + + {% if entries is empty %}

{{ 'No link available here!'|trans }}

{% else %} - {{ 'msg.results'|transchoice(count) }} +

{{ 'entry.add'|trans }}

{% endif %}