From 2df2131d69a02d82bf477276db0b141616b16f74 Mon Sep 17 00:00:00 2001 From: Pedro Moreno Date: Thu, 16 Feb 2023 12:46:36 +0100 Subject: [PATCH] Improved login button --- templates/partials/sidebar_right.html.twig | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/templates/partials/sidebar_right.html.twig b/templates/partials/sidebar_right.html.twig index fc5f291..1fa7cf1 100644 --- a/templates/partials/sidebar_right.html.twig +++ b/templates/partials/sidebar_right.html.twig @@ -35,16 +35,15 @@ {% endif %} {% if config.plugins.login.enabled %} -
- {% if not grav.user.authenticated %} + {% if not grav.user.authenticated %} +
  • {{ 'PLUGIN_LOGIN.BTN_LOGIN'|t }}
  • {% else %} - {% include 'partials/login-status.html.twig' %} +
  • Logged as: {{ grav.user.fullname ?: grav.user.username }}
  • +
  • {{ 'PLUGIN_LOGIN.BTN_LOGOUT'|t }}
  • {% endif %} +
    - {% endif %} \ No newline at end of file