husseinelsaadi commited on
Commit
b2bc11b
·
1 Parent(s): ce04e48

base updated

Browse files
Files changed (1) hide show
  1. backend/templates/base.html +10 -3
backend/templates/base.html CHANGED
@@ -735,11 +735,18 @@
735
  </a>
736
  <div class="login-buttons">
737
  {% if current_user.is_authenticated %}
738
- <!-- Show a link to the user's dashboard based on their role -->
 
 
 
 
739
  {% if current_user.role == 'unemployed' %}
 
740
  <a href="{{ url_for('my_applications') }}" class="btn btn-outline">My Applications</a>
741
- {% elif current_user.role == 'recruiter' %}
742
- <a href="{{ url_for('jobs') }}" class="btn btn-outline">Browse Candidates</a>
 
 
743
  {% endif %}
744
  <span class="welcome-message">Welcome, {{ current_user.username }}</span>
745
  <a href="{{ url_for('auth.logout') }}" class="btn btn-logout">Logout</a>
 
735
  </a>
736
  <div class="login-buttons">
737
  {% if current_user.is_authenticated %}
738
+ {#
739
+ Display navigation options based on the authenticated user's role.
740
+ Job seekers (role: "unemployed") can view available jobs and their own applications.
741
+ Recruiters and admins can post new jobs, view the jobs list and access the recruiter dashboard.
742
+ #}
743
  {% if current_user.role == 'unemployed' %}
744
+ <a href="{{ url_for('jobs') }}" class="btn btn-outline">Jobs</a>
745
  <a href="{{ url_for('my_applications') }}" class="btn btn-outline">My Applications</a>
746
+ {% elif current_user.role in ('recruiter', 'admin') %}
747
+ <a href="{{ url_for('post_job') }}" class="btn btn-outline">Add Job</a>
748
+ <a href="{{ url_for('jobs') }}" class="btn btn-outline">View Jobs</a>
749
+ <a href="{{ url_for('dashboard') }}" class="btn btn-outline">Dashboard</a>
750
  {% endif %}
751
  <span class="welcome-message">Welcome, {{ current_user.username }}</span>
752
  <a href="{{ url_for('auth.logout') }}" class="btn btn-logout">Logout</a>