{% extends "layouts/dashboard.html" %} {% load storage_tags %} {% load country_tags %} {% block breadcrumbs %} {% endblock %} {% block content %}
{# ── Masthead ───────────────────────────────────────────────── #}

Career · Application

{{ application.applicant.get_full_name|default:application.applicant.email }}

for {{ listing.title }}{% if listing.company %} · {{ listing.company }}{% endif %}

← All applications
{# ── Candidate panel ────────────────────────────────────────── #}
{% include "components/user_avatar.html" with user=application.applicant size="lg" variant="on_light" only %}

{{ application.applicant.get_full_name|default:"—" }}

{{ application.applicant.email }}

{% if application.status == "applied" %}Applied {% elif application.status == "shortlisted" %}Shortlisted {% elif application.status == "hired" %}Hired {% elif application.status == "rejected" %}Not selected {% else %}{{ application.get_status_display }}{% endif %}
{% if can_decide %}
{% csrf_token %}
{{ status_form.status }}
{{ status_form.note }}
{% endif %}
Applied
{{ application.applied_at|date:"j F Y, H:i" }}
{% if application.applicant.profile.institution %}
Institution
{{ application.applicant.profile.institution }}
{% endif %} {% if application.applicant.profile.country %}
Country
{{ application.applicant.profile.country|country_name }}
{% endif %}
{# ── Cover letter ───────────────────────────────────────────── #}

Cover letter

{% if application.cover_letter_file %} Open file → {% endif %}
{% if application.cover_letter_file %} {% if application.cover_letter_file.name|is_pdf_filename %} {# Preview behind
— see application_detail.html for context. #}

Show inline preview

Open or download
{% else %}

Cover letter file: Download

{% endif %} {% endif %} {% if cover_letter_meaningful %}

In-form cover letter

{{ application.cover_letter|safe }}
{% elif not application.cover_letter_file %}

No cover letter was provided for this application.

{% endif %}
{# Earned certificates were sourced from the REP LMS (retired for Moodle); a Moodle-backed credential feed can repopulate this later via MEL. #} {# ── CV snapshot ────────────────────────────────────────────── #}

{% if cv_display_mode == "snapshot" %}CV snapshot{% else %}CV profile{% endif %}

{% if cv_display_mode == "snapshot" %}as submitted {% elif cv_display_mode == "live_updated" %}updated since apply · {{ cv_profile_updated_at|date:"j M Y" }} {% elif cv_display_mode == "live_backfill" %}live profile {% else %}current{% endif %}
{% if cv_display_mode == "live_updated" %}
The applicant saved their CV after applying — this is their latest profile (last updated {{ cv_profile_updated_at|date:"j F Y, H:i" }}).
{% elif cv_display_mode == "live_backfill" %}
Little or no CV data was stored at submission time; showing their profile as it stands now.
{% endif %}
{% if cv_profile_for_applicant.cv_document %} {% if cv_profile_for_applicant.cv_document.name|is_pdf_filename %}

CV document — show inline preview

Open or download
{% else %}

CV document: Download

{% endif %} {% endif %} {% if cv_has_content %}
{% if cv_display.headline %}

Headline

{{ cv_display.headline }}

{% endif %} {% if cv_display.summary %}

Summary

{{ cv_display.summary|safe }}
{% endif %} {% for sec in cv_display.sections %}

{% if sec.type == "experience" %}Work experience{% else %}{{ sec.type|title }}{% endif %}

{% include "rep/career/partials/cv_snapshot_section.html" with section=sec %}
{% endfor %}
{% elif not cv_profile_for_applicant.cv_document %}

No headline, summary, or CV sections are on file for this applicant yet.

{% endif %}
{% endblock %}