{% extends "office/member/base.html" %} {% load i18n %} {% load log_entry %} {% block title %}{{ block.super }} :: {% trans "Timeline" %}{% endblock %} {% block member_content %}
{% for entry in timeline %} {% if entry.tl.year_first %}
{{ entry.date.year }}
{% endif %} {% if entry.tl.month_first %}
{{ entry.date|date:'M' }}
{% endif %} {% if entry.type != "dummy" %}
{% if entry.deleted %} {% endif %}
{% if entry.type == "finance" and entry.instance.transaction %}
{% if entry.subtype == "membership-due" %}
{{ entry.value }} {% trans "Membership due" %}
{% elif entry.subtype == "membership-paid" %}
{{ entry.value }} {% trans "Payment received" %}
{% else %} {% endif %} {% with memo=entry.instance.find_memo %} {% if memo and not entry.subtype == "membership-due" %}
{{ memo }}
{% endif %} {% endwith %} {% with booking_datetime=entry.instance.booking_datetime|default:entry.instance.transaction.booking_datetime %} {% if booking_datetime and booking_datetime != entry.instance.transaction.value_datetime %} {% endif %} {% endwith %} {% if entry.deleted %} {% endif %}
{% elif entry.type == "mail" and entry.subtype == "mail-out" %}
{# FIXME Format special names #} {% if entry.instance.reply_to %} {% endif %} {% if entry.instance.cc %} {% endif %}
{% trans "To" context "mail header" %}: {{ entry.instance.to }}
{% trans "Subject" context "mail header" %}: {{ entry.instance.subject }}
{% trans "Reply-To" context "mail header" %}: {{ entry.instance.reply_to }}
{% trans "Cc" context "mail header" %}: {{ entry.instance.cc }}
{% if request.GET.expand == entry.tl.entry_id %}
{{ entry.instance.text }}
{% else %}
{{ entry.instance.text|truncatewords_html:150 }}
…
{% endif %}
{% elif entry.type == "ops" and entry.subtype == "membership-begin" %}
{% trans "Membership start" %}
{% elif entry.type == "ops" and entry.subtype == "membership-end" %}
{% trans "Membership end" %}
{% elif entry.type == "ops" %}
{% if entry.subtype == "member-created" %} {% trans "Membership entry created" %} {% elif entry.subtype == "member-updated" %} {% trans "Membership entry changed" %} {% elif entry.subtype == "document-created" %} {% trans "Document uploaded" %} {% else %} {{ entry.instance.action_type }} {% endif %}
{% if entry.instance.data.source %} {% endif %}
{% elif entry.type == "document" %}
{% if entry.subtype == "registration_form" %} {% trans "Registration form" %} {% else %} {% trans "Document" %} {% endif %}
{% if entry.instance.title %}
{{ entry.instance.title }}
{% endif %}
{% elif entry.type == "finance" and entry.subtype == "sepadd-mandate-reference-assigned"%}
{% trans "Direct Debit mandate reference assigned" %}: {{ entry.instance.data.mandate_reference }}
{% else %}
{{ entry.type }}
{{ entry.subtype }}
{% endif %}
{% endif %} {% if entry.tl.month_last %}
{% endif %} {% if entry.tl.year_last %}
{% endif %} {% endfor %}
{% endblock %}