From ccab49dd3c1539e870042b04f65f38004d861221 Mon Sep 17 00:00:00 2001 From: tim Date: Wed, 5 Apr 2023 00:55:02 +0200 Subject: [PATCH] Expand navbar with protection --- .gitignore | 1 + deploy.php | 2 +- templates/base/navbar.html.twig | 12 +++++++++--- templates/snip/index.html.twig | 4 ++-- 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index a67f91e..c776ddc 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ /var/ /vendor/ ###< symfony/framework-bundle ### +release.json diff --git a/deploy.php b/deploy.php index fa4513c..f96a57b 100644 --- a/deploy.php +++ b/deploy.php @@ -24,7 +24,7 @@ set('allow_anonymous_stats', false); host('snips.loken.nl') ->setRemoteUser('www-data') ->set('branch', function () { - return input()->getOption('branch') ?: 'develop'; + return input()->getOption('branch') ?: 'main'; }) ->set('deploy_path', '~/snips.loken.nl'); diff --git a/templates/base/navbar.html.twig b/templates/base/navbar.html.twig index 84de309..4f4b080 100644 --- a/templates/base/navbar.html.twig +++ b/templates/base/navbar.html.twig @@ -11,9 +11,15 @@ - + + {% if is_granted("IS_AUTHENTICATED_REMEMBERED") %} + + + {% endif %}