{% extends "wafer/base.html" %} {% load i18n %} {% block content %} {% with profile=object.userprofile %}
{% with profile.avatar_url as avatar_url %} {% if avatar_url != None %} {% endif %} {% endwith %} {% if can_edit %} {% trans 'Edit Mugshot' %}
{% blocktrans %} Pictures provided by libravatar (which falls back to Gravatar).
Change your picture there. {% endblocktrans %}
{% endif %}
{% if can_edit %} {% endif %} {% spaceless %}

{% if profile.homepage %} {% endif %} {{ profile.display_name }} {% if profile.homepage %} {% endif %}

{% if profile.twitter_handle %}

{% endif %} {% if profile.github_username %}

{% blocktrans with username=profile.github_username %}GitHub: {{ username }}{% endblocktrans %}

{% endif %} {% endspaceless %}
{% if profile.bio %}
{{ profile.bio|linebreaks }}
{% endif %} {% if can_edit %} {% if profile.pending_talks.exists or profile.accepted_talks.exists %} {% if profile.is_registered %}
{% blocktrans %} Registered {% endblocktrans %}
{% else %}
{% blocktrans %} WARNING: Talk proposal submitted, but not registered. {% endblocktrans %} {% if WAFER_REGISTRATION_OPEN %} {% trans "Register now!" %} {% endif %}
{% endif %} {% endif %} {% endif %} {# Accepted talks are globally visible #} {% if profile.accepted_talks.exists %}

{% trans 'Accepted Talks:' %}

{% for talk in profile.accepted_talks %}
{{ talk.title }}

{{ talk.abstract.rendered|safe }}

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

{% trans 'Submitted Talks (under consideration):' %}

{% for talk in profile.pending_talks %}
{{ talk.title }} {% 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.abstract.rendered|safe }}

{% endfor %} {% endif %} {% endif %} {% endwith %} {% endblock %} {% block extra_foot %} {% endblock %}