From 5a6dbc46eb7e4080c484f4a8b1a6a1c23bf3a4ec Mon Sep 17 00:00:00 2001 From: ske087 Date: Thu, 24 Jul 2025 15:24:51 +0300 Subject: [PATCH] feat: Hide Share Adventure button for admin users - Remove 'Share Adventure' button from desktop navigation for admin users - Remove 'New Post' button from mobile menu for admin users - Admins can still access post creation via admin panel - Streamlines admin interface to focus on moderation tasks --- app/templates/base.html | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/app/templates/base.html b/app/templates/base.html index 9cf286e..bf55fc8 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -25,9 +25,11 @@ 🏍️ Adventures Accommodation {% if current_user.is_authenticated %} - - Share Adventure - + {% if not current_user.is_admin %} + + Share Adventure + + {% endif %} My Profile @@ -60,9 +62,11 @@ Accommodation Stories & Tracks {% if current_user.is_authenticated %} - - New Post - + {% if not current_user.is_admin %} + + New Post + + {% endif %} My Profile