From dc3f40eab5b9ab848964a1ff262227b8b61c9e61 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 2 May 2017 21:41:44 +0300 Subject: juick-www: Pebble's strictVariables --- juick-www/src/main/webapp/WEB-INF/layouts/content.html | 4 ++-- juick-www/src/main/webapp/WEB-INF/views/index.html | 2 +- juick-www/src/main/webapp/WEB-INF/views/partial/footer.html | 4 ++-- juick-www/src/main/webapp/WEB-INF/views/partial/navigation.html | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'juick-www/src/main/webapp') diff --git a/juick-www/src/main/webapp/WEB-INF/layouts/content.html b/juick-www/src/main/webapp/WEB-INF/layouts/content.html index 76662b5d..00614579 100644 --- a/juick-www/src/main/webapp/WEB-INF/layouts/content.html +++ b/juick-www/src/main/webapp/WEB-INF/layouts/content.html @@ -6,9 +6,9 @@ {% block headers %} - {{ headers | raw }} + {{ headers | default('') | raw }} {% endblock %} - {{ title }} + {{ title | default('Juick') }} diff --git a/juick-www/src/main/webapp/WEB-INF/views/index.html b/juick-www/src/main/webapp/WEB-INF/views/index.html index 09297ef9..da2117a5 100644 --- a/juick-www/src/main/webapp/WEB-INF/views/index.html +++ b/juick-www/src/main/webapp/WEB-INF/views/index.html @@ -63,7 +63,7 @@ {% endfor %} -{% if next is not empty %} +{% if (next | default('')) is not empty %} {{ next | raw }} {% endif %} {% endblock %} diff --git a/juick-www/src/main/webapp/WEB-INF/views/partial/footer.html b/juick-www/src/main/webapp/WEB-INF/views/partial/footer.html index 491cf140..61267396 100644 --- a/juick-www/src/main/webapp/WEB-INF/views/partial/footer.html +++ b/juick-www/src/main/webapp/WEB-INF/views/partial/footer.html @@ -11,7 +11,7 @@ Facebook @@ -24,7 +24,7 @@ ga('create','UA-385578-4','juick.com'); ga('require','displayfeatures'); ga('send','pageview'); - {% if (sapeon) %} + {% if (sapeon | default(false)) %} var _acic={dataProvider:10}; (function(){ var e=document.createElement('script');e.type='text/javascript';e.async=true;e.src='//www2.aci'+'nt.net/aci.js'; diff --git a/juick-www/src/main/webapp/WEB-INF/views/partial/navigation.html b/juick-www/src/main/webapp/WEB-INF/views/partial/navigation.html index 3fbfaf5a..998aa422 100644 --- a/juick-www/src/main/webapp/WEB-INF/views/partial/navigation.html +++ b/juick-www/src/main/webapp/WEB-INF/views/partial/navigation.html @@ -9,7 +9,7 @@
-- cgit v1.2.3