From ce3149770ae8fe7876f1375acb642a8ae3549d38 Mon Sep 17 00:00:00 2001 From: Faheed Date: Thu, 25 Dec 2025 15:50:05 +0300 Subject: [PATCH] update navbar --- NorahUniversity/settings.py | 5 ++++- templates/base.html | 33 ++++++++++++++++++++------------- 2 files changed, 24 insertions(+), 14 deletions(-) diff --git a/NorahUniversity/settings.py b/NorahUniversity/settings.py index ae1397a..68669bc 100644 --- a/NorahUniversity/settings.py +++ b/NorahUniversity/settings.py @@ -572,4 +572,7 @@ CACHES = { "CLIENT_CLASS": "django_redis.client.DefaultClient", } } -} \ No newline at end of file +} + + +CSRF_TRUSTED_ORIGINS=["http://10.10.1.126","https://kaauh1.tenhal.sa",'http://127.0.0.1'] \ No newline at end of file diff --git a/templates/base.html b/templates/base.html index f7324df..c871916 100644 --- a/templates/base.html +++ b/templates/base.html @@ -25,7 +25,7 @@ - {% block customCSS %}{% endblock %} + {% block customCSS %}{% endblock %} @@ -41,15 +41,7 @@ {% trans "Dashboard" %} - - - {% trans "Messages" %} - {% if request.user.get_unread_message_count > 0 %} - - {{ request.user.get_unread_message_count }} - - {% endif %} - + {% trans "Jobs" %} @@ -71,10 +63,25 @@ {% trans "Interviews" %} - - {% trans "Career Page" %} - +
+
+ {% comment %} {% trans "System" %} {% endcomment %} +
+ + + {% trans "Messages" %} + {% if request.user.get_unread_message_count > 0 %} + + {{ request.user.get_unread_message_count }} + + {% endif %} + + + {% trans "Career Page" %} + + +
{% if request.user.is_authenticated and request.user.is_superuser %}