{% set g = giving = participant.get_dollars_giving() %}
{% set r = receiving = participant.get_dollars_receiving() %}
{% if g > r and not participant.anonymous %}
{{ participant.username }} gives
{% if user == participant %}
${{ giving }}
{% else %}
${{ giving }}
{% end %}
per
week{% if r > 0 %}, and receives ${{ receiving }}{% end %}
{% elif r > 0 %}
{{ participant.username }} receives
${{ receiving }}
per
week{% if g > 0 %}, and gives
{% if participant.anonymous %}
anonymously
{% elif user == participant %}
${{ giving }}
{% else %}
${{ giving }}
{% end %}
{% end %}
{% else %}
{% set age = participant.get_age_in_seconds() %}
{{ participant.username }}
{% if g > 0 %}
gives anonymously
{% elif age < 60 %}
just joined Gittip! :D
{% elif age < (60 * 60 * 24 * 7) %}
joined recently
{% else %}
is lurking
{% end %}