{% extends 'base.html' %} {% load static %} {% block content %}

My jobs

{% if user.is_employee and employee_jobs %} {% for job in employee_jobs %}

{{ job.title }}

{% if job.job_type == 'full_time' %} Full Time {% elif job.job_type == 'part_time'%} Part Time {% elif job.job_type == 'freelance'%} Freelance {% elif job.job_type == 'internship'%} Internship {% elif job.job_type == 'temporary'%} Temporary {% endif %}
{{ job.location }}
{% endfor %} {% elif user.is_employer and not employer_jobs %}

You don't have a applied job.

{% endif %} {% if user.is_employer %}

You are not an employee.

{% endif %}
{% if is_paginated %}
    {% if page_obj.has_previous %}
  • <
  • {% else %}
  • <
  • {% endif %} {% for i in paginator.page_range %} {% if page_obj.number == i %}
  • {{ i }}
  • {% else %}
  • {{ i }}
  • {% endif %} {% endfor %} {% if page_obj.has_next %}
  • >
  • {% else %}
  • >
  • {% endif %}
{% endif %}
{% endblock %}