<!-- filepath: /home/ross/rad/rad/atlas/templates/atlas/linked_cases_overview.html -->
{% extends "base.html" %}

{% load partials %}


{% block content %}
    <h1>Linked Cases Overview</h1>
    <h2>Current Case: {{ current_case.title }}</h2>

    <h3>Previous Cases</h3>
    {% if previous_cases %}
        <ul>
            {% for case in previous_cases %}
                <li>
                    <a href="{{ prev_case.get_absolute_url }}">{{ case.title }}</a>

                </li>
                {% include "atlas/case_display_block.html#case-series" %}
            {% endfor %}
        </ul>
    {% else %}
        <p>No previous cases.</p>
    {% endif %}

    <h3>Next Cases</h3>
    {% if next_cases %}
        <ul>
            {% for case in next_cases %}
                <li>
                    <a href="{{ next_case.get_absolute_url }}">{{ case.title }}</a>
                </li>
                {% include "atlas/case_display_block.html#case-series" %}
            {% endfor %}
        </ul>
    {% else %}
        <p>No next cases.</p>
    {% endif %}
{% endblock %}