From c04df2c481f8c6ea639c5e12f3752bb9f44979dc Mon Sep 17 00:00:00 2001 From: Nicolas Le Goff Date: Tue, 5 Mar 2013 17:20:53 +0100 Subject: [PATCH] Handle guest access --- templates/web/login/include/guest-access-block.html.twig | 9 +++++++++ templates/web/login/index.html.twig | 6 ++++-- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 templates/web/login/include/guest-access-block.html.twig diff --git a/templates/web/login/include/guest-access-block.html.twig b/templates/web/login/include/guest-access-block.html.twig new file mode 100644 index 0000000000..03b6dae755 --- /dev/null +++ b/templates/web/login/include/guest-access-block.html.twig @@ -0,0 +1,9 @@ +{% if guest_allowed %} + +{% endif %} diff --git a/templates/web/login/index.html.twig b/templates/web/login/index.html.twig index dc4d8052dd..02291ed2c0 100644 --- a/templates/web/login/index.html.twig +++ b/templates/web/login/index.html.twig @@ -2,6 +2,7 @@ variable "feed" to get public feeds variable "recaptcha_display" should be setted Tell whether the recaptch should be displayed variable "recaptacha" should be setted The recaptcha object + variable "guest_allowed" phrasea::guest_allowed($app) #} {% extends "login/layout/sidebar-layout.html.twig" %} @@ -85,7 +86,7 @@ -