{% extends "layouts/dashboard.html" %} {% block breadcrumbs %} {% endblock %} {% block content %} {% if perms.rep_courses.manage_courses or user.is_staff %} {% url 'rep_career:resource_create' as resource_create_url %} {% include "components/page_header.html" with title="Resource library" subtitle="Articles, guides, and tools curated by the Secretariat for researchers and scholars across the network." cta_url=resource_create_url cta_label="Add resource" %} {% else %} {% include "components/page_header.html" with title="Resource library" subtitle="Articles, guides, and tools curated by the Secretariat for researchers and scholars across the network." %} {% endif %}
{% if request.GET.q or request.GET.stage %} Clear {% endif %}
{% if resources %}
{% for r in resources %} {# Type-coded kind chip: article (AR), video (VD), external link (LK). #}

{{ r.title }}

{{ r.get_resource_type_display }} {% if r.career_stage %}· {{ r.career_stage }}{% endif %} {% if r.updated_at %}· Updated {{ r.updated_at|date:"j M Y" }}{% endif %}
{% include "components/icon.html" with name="chevron-right" css="h-4 w-4 shrink-0 text-ruforum-text-muted/50" stroke_width="2" %}
{% endfor %}
{% else %}
{% if request.GET.q or request.GET.stage %} {% else %} {% endif %}

{% if request.GET.q or request.GET.stage %}Nothing matches your filters {% elif perms.rep_courses.manage_courses or user.is_staff %}The library is empty — seed it {% else %}No resources yet{% endif %}

{% if request.GET.q or request.GET.stage %}Try a broader search term or clear the career-stage filter. {% elif perms.rep_courses.manage_courses or user.is_staff %}Add the first article, video, or external link. Resources you publish appear here for every researcher and scholar in the network. {% else %}Career resources will appear here as the Secretariat publishes them — articles, videos, and external links curated for researchers across the network.{% endif %}

{% if request.GET.q or request.GET.stage %} Clear filters {% elif perms.rep_courses.manage_courses or user.is_staff %} Add the first resource Browse job board → {% else %} Browse the job board instead {% endif %}
{% endif %} {% endblock %}