{% extends "auth.html" %} {% block regular_content %}

{% if first_time %}{{_('welcome')}}{% else %}{{_('welcome_back')}}{% endif %} {{user[0]|upper}}{{user[1:]}}!

{% if is_teacher %}
{{_('teacher_tutorial_logo_alt')}}

{{_('start_teacher_tutorial')}}

{% else %}
{{_('hedy_tutorial_logo_alt')}}

{{_('start_hedy_tutorial')}}

{% endif %}
{{_('start_programming_logo_alt')}}

{{_('start_programming')}}

{{_('explore_programs_logo_alt')}}

{{_('explore_programs')}}

{% if not first_time %}

{{_('your_account')}}

{% if user_info.image %} {{_('profile_logo_alt')}} {% else %} {{_('profile_logo_alt')}} {% endif %}
{{user[0]|upper}}{{user[1:]}}
{% if achievements['achieved'] and 'hedy_certificate' in achievements['achieved'] %}
👑
{% endif%} {% if achievements['achieved'] %}
{{ achievements['achieved']|length }} {{_('achievements')}}
{% endif %}
{% if user_info.personal_text %} {{ user_info.personal_text }} {% else %}
{{_('no_public_profile')}}
{% endif %}
{% if achievements %}
{% if achievements.run_programs %}
{{ achievements.run_programs }} {{_('amount_created')}}
{% else %}
0 {{_('amount_created')}}
{% endif %}
|
{% if achievements.saved_programs %}
{{ achievements.saved_programs }} {{_('amount_saved')}}
{% else %}
0 {{_('amount_saved')}}
{% endif %}
|
{% if achievements.submitted_programs %}
{{ achievements.submitted_programs }} {{_('amount_submitted')}}
{% else %}
0 {{_('amount_submitted')}}
{% endif %}
{% endif %}
{% if last_achieved %}

{{_('last_achievement')}}

{{_('achievements_logo_alt')}}

{{ achievements[last_achieved].title }}

{% endif %}
{% if program %}

{{_('your_last_program')}}

{{ program.name }}

{{ program.preview_code | truncate(200) }}
{% endif %}
{% endif %}
{% endblock %}