{% extends 'atlas/base.html' %}

{% block content %}



    <div class="floating-header">
        {% comment %}         <a href="{% url 'atlas:presentation_update' pk=presentation.pk %}" title="Edit the Condition">Edit</a>
        <a href="{% url 'atlas:presentation_delete' pk=presentation.pk %}" title="Delete the Condition">Delete</a> {% endcomment %}
        {% if request.user.is_superuser %}
            <a href="{% url 'admin:atlas_presentation_change' presentation.id %}"
               title="Edit the Condition using the admin interface">Admin Edit</a>
        {% endif %}
    </div>
    <div>
        <h3>Name: {{presentation.name}}</h3>
        Subspecialty: {{presentation.subspecialty.all|join:", "}}<br />
    </div>
    {% if presentation.case_set.all %}
        <h4>Associated Cases</h4>
        <ul>

            {% for case in presentation.case_set.all %}
                <li>{{case.get_link}}</li>
            {% endfor %}

        </ul>
    {% endif %}

    {% if presentation.sbas_questions.all %}
        <h4>Related SBA Questions</h4>
        <ul>
            {% for q in presentation.sbas_questions.all %}
                <li><a href="{{ q.get_absolute_url }}">{% if q.title %}{{ q.title }}{% else %}{{ q.get_stem_stripped|truncatechars:140 }}{% endif %}</a></li>
            {% endfor %}
        </ul>
    {% endif %}

{% endblock %}

{% block js %}

{% endblock %}
