From f0f077161af511d9493760e8c42bc21c5bf58312 Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Mon, 26 Oct 2015 18:06:57 +0100 Subject: [PATCH] Only show login if not logged in. If logged in but not authorized, show logout button --- themes/grav/templates/login.html.twig | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/themes/grav/templates/login.html.twig b/themes/grav/templates/login.html.twig index a789e628..f74dc1b1 100644 --- a/themes/grav/templates/login.html.twig +++ b/themes/grav/templates/login.html.twig @@ -13,8 +13,12 @@ {% if notAuthorized %} {{ 'PLUGIN_ADMIN.BACK'|tu }} {% else %} - {{ 'PLUGIN_ADMIN.LOGIN_BTN_FORGOT'|tu }} - + {% if not authenticated %} + {{ 'PLUGIN_ADMIN.LOGIN_BTN_FORGOT'|tu }} + + {% else %} + + {% endif %} {% endif %}