{% extends "wafer/base.html" %} {% load i18n %} {% load debconf %} {% block title %}{{ object.userprofile.display_name }} - {{ WAFER_CONFERENCE_NAME }}{% endblock %} {% block main_class %}profile{% endblock %} {% 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 %}
{% if profile.bio %}
{{ profile.bio|linebreaks }}
{% endif %} {% if can_edit %} {% with attendee=object.attendee %} {% if attendee.billable and not attendee.paid %}
Not paid. {% if attendee.new_invoices.exists %} My Invoices {% else %} Finish Registration {% endif %}
{% endif %} {% endwith %} {% if profile.pending_talks.exists or profile.accepted_talks.exists or profile.provisional_talks.exists %} {% if profile.is_registered %}
{% blocktrans %} Registered {% endblocktrans %}
{% else %}
{% blocktrans %} WARNING: Talk proposal submitted, but speaker hasn't registered to attend. {% 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 %} {% if profile.cancelled_talks.exists %}

{% trans 'Cancelled Talks:' %}

{% for talk in profile.cancelled_talks %}

{{ talk.title }}

{{ talk.abstract.rendered|safe }}

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

{% trans 'Provisionally Accepted Talks:' %}

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

{% endfor %}
{% endif %} {% endif %} {% if can_edit and object.bursary and object.bursary.request_any %}
{% with bursary=object.bursary %}

{% trans 'My bursary requests:' %}

{% trans 'Food' %}

{% if bursary.request_food %}

{{ bursary.get_food_status_display }}

{% if bursary.can_update and bursary.food_status == 'pending' %}

{% blocktrans with date=bursary.food_accept_before|date %} Your bursary has been granted. You need to confirm it before {{ date }}. {% endblocktrans %}

{% endif %} {% else %}
{% trans 'Not Requested' %}
{% endif %}

{% trans 'Accommodation' %}

{% if bursary.request_accommodation %}

{{ bursary.get_accommodation_status_display }}

{% if bursary.can_update and bursary.accommodation_status == 'pending' %}

{% blocktrans with date=bursary.accommodation_accept_before|date %} Your bursary has been granted. You need to confirm it before {{ date }}. {% endblocktrans %}

{% endif %} {% else %}
{% trans 'Not Requested' %}
{% endif %}

{% trans 'Travel' %}

{% if bursary.request_travel %}

{{ bursary.get_travel_status_display }}

{% trans 'Requested' %} {{ bursary.travel_bursary }} USD
{% trans 'Reimbursed' %} {{ bursary.reimbursed_amount }} USD
{% if bursary.can_update and bursary.travel_status == 'pending' %}

{% blocktrans with date=bursary.travel_accept_before|date %} Your bursary has been granted. You need to confirm it before {{ date }}. {% endblocktrans %}

{% endif %} {% else %}
{% trans 'Not Requested' %}
{% endif %}
{% if bursary.can_update %} {% if bursary.must_accept %}

{% trans 'Accept my bursary' %}

{% else %}

{% trans 'Update my bursary request' %}

{% endif %} {% endif %} {% endwith %}
{% endif %} {% if can_edit and object.invoices.exists %}
{% with invoices=object.invoices.all %}

{% trans 'My invoices:' %}

{% for invoice in invoices %}

#{{ invoice.reference_number }}

Total: {{ invoice.total }} USD or {{ invoice.total_local }} {% debconf_setting "LOCAL_CURRENCY" %}
Status: {{ invoice.get_status_display }}
Display
{% endfor %}
{% endwith %}
{% endif %} {% with accomm=object.attendee.accomm %} {% if can_edit and accomm %}

{% trans 'My accommodation' %}

Nights

    {% for night in accomm.nights.all %}
  • Night of {{ night }}
  • {% endfor %}
The night of is the night after the date specified.

Room {{ accomm.room }}

{% if accomm.room %}
Roommates:
    {% for mate in accomm.get_roommates %}
  • {{ mate.user.userprofile.display_name }}
  • {% endfor %}
{% else %} Your room hasn't been assigned yet. Check back, a few days before {{ WAFER_CONFERENCE_NAME }}. {% endif %}
{% endif %} {% endwith %} {% endwith %} {% endblock %} {% block extra_foot %} {% endblock %}