{% extends "root.html" %} {% if admin %} {% set active_page = "admin" %} {% else %} {% set active_page = "profile" %} {% endif %} {% block title %}{% if admin %}{{member.username}}{%else%}Profile{%endif%}{% endblock %} {% block content %}
gravatar

{{member.username}}{%if cn %}
{{cn}}{% endif%}

{{member.get_contact_email()}}
Joined in {{ member.join_year }}-{{ "%02i" | format(member.join_month) }}
{% if admin %}
Local ID: {{member.id}}
{%endif%}

{% if status.judgement %} Active

{% else %} Inactive

{% endif %}

{% if admin %}

Payment Policy

{% include "button_payment_policy.html" %}

Membership Type

{% include "button_membership_type.html" %} {% else %}

Payment Policy

{{status.payment_policy}}

Membership Type

{{status.type}}
{% endif %}

Judgement Engineā„¢

{%if status.last_paid[0] == None %} Has never paid, {% if member.payment_policy == "Normal" %} and has no special priviledge, so is INACTIVE. {% elif member.payment_policy == "Disabled" %} and is disabled, so is INACTIVE. {% else %} but has special privileges ({{member.payment_policy}}), so is ACTIVE. {% endif %} {%else%} Has paid at least once, {% if status.left %} but has since left the hackerspace, so is INACTIVE. {% else %} {% if member.payment_policy == "Potato" %} and is a potato, so is ACTIVE. {% elif member.payment_policy == "Disabled" %} but has been manually disabled, so is INACTIVE. {% else %} and needs to pay {{status.months_due}} month(s) worth of fees {% if member.payment_policy == "Normal" %} {% if status.judgement %} (which is within tolerance), so is ACTIVE. {% else %} (which is overdue), so is INACTIVE. {% endif %} {% else %} . {{member.username}} Is in Extended Grace Period, so is ACTIVE. {% endif %} {% endif %} {% endif %} {%endif%}

Transfers

{% set rowspan_left = -1 %} {% for mt in member.transfers %} {% if mt.transfer.uid != "NOTAMEMBER" %} {% set rowspan = member.mt_covers(mt) %} {% if rowspan %} {% set rowspan_left=rowspan %} {% elif rowspan_left>0 %} {% set rowspan_left=rowspan_left-1 %} {% endif %} {% if rowspan %} {% elif rowspan_left <= 0 %} {% endif %} {% if admin and loop.last %} {%endif%} {% else %} {% endif %} {% endfor %}
UID Amount Title Date Covers
{{ mt.transfer.get_short_uid() }} {{ mt.transfer.amount /100 }}PLN {{ mt.transfer.title }} {{ mt.transfer.date }}{{ mt.transfer.get_short_uid() }} {{ mt.transfer.amount /100 }}PLN {{ mt.transfer.title }} {{ mt.transfer.date }}{{ mt.year }}-{{ "%02i" | format(mt.month) }}
[Add "NOT A MEMBER FROM THIS POINT" marker]
Not a member from this point... {{ mt.year }}-{{ "%02i" | format(mt.month) }}
{% endblock %}