{% load i18n %} {% with profile=object.userprofile %} {# Accepted talks are globally visible #} {% if profile.accepted_talks.exists %}

{% trans 'Accepted Talks:' %}

{% for talk in profile.accepted_talks %}

{{ talk.title }}

{{ talk.abstract }}

{% endfor %}
{% endif %} {% if profile.cancelled_talks.exists %}

{% trans 'Cancelled Talks:' %}

{% for talk in profile.cancelled_talks %}

{{ talk.title }}

{{ talk.abstract }}

{% endfor %}
{% endif %} {# Submitted talk proposals are only visible to the owner #} {% if can_edit %} {% if profile.provisional_talks.exists %}

{% trans 'Provisionally Accepted Talks:' %}

{% for talk in profile.provisional_talks %}

{{ talk.title }}

{{ talk.abstract }}

{% endfor %}
{% endif %} {% if profile.pending_talks.exists %}

{% trans 'Submitted or Under Consideration Talks:' %}

{% for talk in profile.pending_talks %}
{% comment %} Because this is one of the author's pending talks, we don't need to check for edit permission's on the talk explictly. This doesn't show the edit button for people with 'change-talk' permissions, but we accept that tradeoff for simplicity here. {% endcomment %} {% trans 'Edit' %}

{{ talk.title }}

{{ talk.abstract }}

{% endfor %}
{% endif %} {% endif %} {% endwith %}