{% extends "base/dashboard.html" %} {% block stylesheets %} {% endblock %} {% block scripts %} {{ super() }} {% endblock %} {% block body %}
Participant ID
Assignment ID
Worker ID
{{ message }} {% if participant is not none %} {{ summarize_participant(participant) }} {% endif %}
{% endblock %} {% macro summarize_participant(participant) %}
Participant ID {{ participant.id }}
Worker ID {{ participant.worker_id }}
Assignment ID {{ participant.assignment_id }}
Status {{ participant.status }}
Failed {{ participant.failed }}
Current module {{ participant.current_module_id }}
Current bonus {{ participant.calculate_bonus() }}
Link for resuming session {{ get_resume_url(participant) }}
{% endmacro %} {% macro get_resume_url(participant) %}{{ app_base_url }}/resume/{{ participant.auth_token }}{% endmacro %}