Merge pull request 'update navbar' (#141) from frontend into main

Reviewed-on: #141
This commit is contained in:
Faheed 2025-12-25 15:52:03 +03:00
commit 780ffac2f6
2 changed files with 24 additions and 14 deletions

View File

@ -572,4 +572,7 @@ CACHES = {
"CLIENT_CLASS": "django_redis.client.DefaultClient", "CLIENT_CLASS": "django_redis.client.DefaultClient",
} }
} }
} }
CSRF_TRUSTED_ORIGINS=["http://10.10.1.126","https://kaauh1.tenhal.sa",'http://127.0.0.1']

View File

@ -25,7 +25,7 @@
<script src="{% static 'js/main.js' %}"></script> <script src="{% static 'js/main.js' %}"></script>
<script src="{% static 'js/typo.js' %}"></script> <script src="{% static 'js/typo.js' %}"></script>
{% block customCSS %}{% endblock %} {% block customCSS %}{% endblock %}
</head> </head>
<body> <body>
@ -41,15 +41,7 @@
<i class="fas fa-th-large me-2"></i> <span>{% trans "Dashboard" %}</span> <i class="fas fa-th-large me-2"></i> <span>{% trans "Dashboard" %}</span>
</a> </a>
<a class="nav-link-custom {% if 'message' in request.path %}active{% endif %}" href="{% url 'message_list' %}">
<i class="fas fa-envelope me-2"></i>
<span>{% trans "Messages" %}</span>
{% if request.user.get_unread_message_count > 0 %}
<span class="badge rounded-pill bg-danger ms-auto">
{{ request.user.get_unread_message_count }}
</span>
{% endif %}
</a>
<a class="nav-link-custom {% if 'job' in request.path and 'bank' not in request.path %}active{% endif %}" href="{% url 'job_list' %}"> <a class="nav-link-custom {% if 'job' in request.path and 'bank' not in request.path %}active{% endif %}" href="{% url 'job_list' %}">
<i class="fas fa-briefcase me-2"></i> <span>{% trans "Jobs" %}</span> <i class="fas fa-briefcase me-2"></i> <span>{% trans "Jobs" %}</span>
@ -71,10 +63,25 @@
<a class="nav-link-custom {% if 'interview' in request.path %}active{% endif %}" href="{% url 'interview_list' %}"> <a class="nav-link-custom {% if 'interview' in request.path %}active{% endif %}" href="{% url 'interview_list' %}">
<i class="fas fa-calendar-alt me-2"></i> <span>{% trans "Interviews" %}</span> <i class="fas fa-calendar-alt me-2"></i> <span>{% trans "Interviews" %}</span>
</a> </a>
<a class="nav-link-custom {% if request.resolver_match.url_name == 'kaauh_career' %}active{% endif %}" href="{% url 'kaauh_career' %}">
<i class="fas fa-globe me-2"></i> <span>{% trans "Career Page" %}</span>
</a>
<div class="mt-auto">
<div class="mt-4 pt-3 border-top border-secondary mx-3 uppercase">
{% comment %} <small class="text-white-50 px-2">{% trans "System" %}</small> {% endcomment %}
</div>
<a class="nav-link-custom {% if 'message' in request.path %}active{% endif %}" href="{% url 'message_list' %}">
<i class="fas fa-envelope me-2"></i>
<span>{% trans "Messages" %}</span>
{% if request.user.get_unread_message_count > 0 %}
<span class="badge rounded-pill bg-danger ms-auto">
{{ request.user.get_unread_message_count }}
</span>
{% endif %}
</a>
<a class="nav-link-custom {% if request.resolver_match.url_name == 'kaauh_career' %}active{% endif %}" href="{% url 'kaauh_career' %}">
<i class="fas fa-globe me-2"></i> <span>{% trans "Career Page" %}</span>
</a>
</div>
{% if request.user.is_authenticated and request.user.is_superuser %} {% if request.user.is_authenticated and request.user.is_superuser %}
<div class="mt-auto"> <div class="mt-auto">