From 942e3fee673591d825d229dc0ec9ba9de1245535 Mon Sep 17 00:00:00 2001 From: Bart Date: Thu, 2 Jul 2015 10:49:12 +0200 Subject: [PATCH] refactor online template --- .../Resources/views/Admin/online.html.twig | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Kunstmaan/NodeBundle/Resources/views/Admin/online.html.twig b/src/Kunstmaan/NodeBundle/Resources/views/Admin/online.html.twig index 6564eac896..faf67e9279 100644 --- a/src/Kunstmaan/NodeBundle/Resources/views/Admin/online.html.twig +++ b/src/Kunstmaan/NodeBundle/Resources/views/Admin/online.html.twig @@ -1,14 +1,14 @@ -{% set online = adminlist.getStringValue(row, columnName) %} -{% if online=='true' %} - - - {{ ' (Online)' | trans }} - -{% elseif online=='false' %} +{% set online = adminlist.getValue(row, columnName) %} +{% if online == false %} {{ ' (Offline)' | trans }} +{% elseif online == true %} + + + {{ ' (Online)' | trans }} + {% else %} {{ online }} {% endif %}