{% extends "global/Page.html" %}
{% load otree %}
{% block title %}Results{% endblock %}
{% block content %}
{% if player.id_in_group == 2 %}
Player A offered you {{group.individual_share_b}} out of the total {{Constants.endowment}} keeping {{group.individual_share_a}} for themselves. You
{% if group.offer_accept == True%}
accepted this offer.
Your payoff for this round is therefore {{group.individual_share_b}}
{% else %}
rejected this offer.
Your payoff for this round is therefore 0.
{% endif %}
{% else %}
You were given {{Constants.endowment}}, out of which you offered {{group.individual_share_b}} to player B. Your offer was
{% if group.offer_accept == True%}
accepted.
Your payoff for this round is therefore {{group.individual_share_a}}.
{% else %}
rejected.
Your payoff for this round is therefore 0.
{% endif %}.
{% endif %}
{% next_button %}
{% endblock %}