<commit_before>{% extends "base.html" %}

{% load sitetree %}

{% block title %} - Presentation: {{ presentation.title }}{% endblock %}

{% block breadcrumbs %}{% sitetree_breadcrumbs from "main" %}{% endblock %}

{% block body %}
<div class="container">
    {% if presentation.slot %}
        <h4>
            {{ presentation.slot.day.date|date:"l" }}
            {{ presentation.slot.start}}&ndash;{{ presentation.slot.end }}
            {% if presentation.slot.rooms %}
                in {{ presentation.slot.rooms|join:", " }}
            {% endif %}
        </h4>
    {% endif %}
    <h2>{{ presentation.title }}</h2>

    <h4>
        {% for speaker in presentation.speakers %}
            <a href="{% url "speaker_profile" speaker.pk %}">{{ speaker }}</a>{% if not forloop.last %}, {% endif %}{% endfor %}
    </h4>

    <dl class="dl-horizontal">
        <dt>Audience level:</dt>
        <dd style="margin-bottom: 0;">{{ presentation.proposal.get_audience_level_display }}</dd>
    </dl>

    <h3>Description</h3>

    <div class="description">{{ presentation.description_html|safe }}</div>

    <h3>Abstract</h3>

    <div class="abstract">{{ presentation.abstract_html|safe }}</div>
</div>
{% endblock %}
<commit_msg>Show slides and code links on presentation pages.<commit_after>{% extends "base.html" %}

{% load sitetree %}

{% block title %} - Presentation: {{ presentation.title }}{% endblock %}

{% block breadcrumbs %}{% sitetree_breadcrumbs from "main" %}{% endblock %}

{% block body %}
<div class="container">
    {% if presentation.slot %}
        <h4>
            {{ presentation.slot.day.date|date:"l" }}
            {{ presentation.slot.start}}&ndash;{{ presentation.slot.end }}
            {% if presentation.slot.rooms %}
                in {{ presentation.slot.rooms|join:", " }}
            {% endif %}
        </h4>
    {% endif %}
    <h2>{{ presentation.title }}</h2>

    <h4>
        {% for speaker in presentation.speakers %}
            <a href="{% url "speaker_profile" speaker.pk %}">{{ speaker }}</a>{% if not forloop.last %}, {% endif %}{% endfor %}
    </h4>

    <dl class="dl-horizontal">
        <dt>Audience level:</dt>
        <dd style="margin-bottom: 0;">{{ presentation.proposal.get_audience_level_display }}</dd>
    </dl>

    <h3>Description</h3>

    <div class="description">{{ presentation.description_html|safe }}</div>

    <h3>Abstract</h3>

    <div class="abstract">{{ presentation.abstract_html|safe }}</div>

    {% if config.PROPOSAL_URL_FIELDS %}
        {# Don't show this section if there aren't either slides_url or code_url. #}
        {% if presentation.proposal.slides_url or presentation.proposal.code_url %}
            <h3>Links</h3>
            <ul>
            {% if presentation.proposal.slides_url %}
                <li>Slides: <a href="{{ presentation.proposal.slides_url }}">{{ presentation.proposal.slides_url }}</a></li>
            {% endif %}
            {% if presentation.proposal.code_url %}
                <li>Code: <a href="{{ presentation.proposal.code_url }}">{{ presentation.proposal.code_url }}</a></li>
            {% endif %}
            </ul>
        {% endif %}
    {% endif %}
</div>
{% endblock %}

{'fraction_non_alphanumeric': 0.18605378361475922, 'fraction_numerical': 0.0075046904315197, 'mean_word_length': 2.610609480812641, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 63, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5562616', 'n_tokens_mistral': 1079, 'n_tokens_neox': 979, 'n_words': 199}