{% import "components/home.html" as home with context %} {% extends "layout/basic.html" %} {% block content %}
  • {{ _('Discussions') }} ({{ dcount }})

    {% if not ddocs %} {{ nothing.render('Oh, the user hasn\'t created any discussions yet!') }} {% else %}

    {{ _('Recently Created Discussions') }}

    {% with udict = {udoc['_id']: udoc} %} {% include "partials/discussion_list.html" %} {% endwith %}
    {% endif %}
  • {{ _('Contributions') }} ({{ pcount + pscount }})

    {% if not pdocs and not psdocs %} {{ nothing.render('Oh, the user doesn\'t have any contributions!') }} {% else %} {% if pdocs %}

    {{ _('Contributed Problems') }}

    {% for pdoc in pdocs %}

    {{ pdoc['title'] }}

    {% endfor %}
    {% endif %}{# if pdocs #} {% if psdocs %}

    {{ _('Most Upvoted Solutions') }}

    {% for psdoc in psdocs_hot %}

    PS{{ psdoc['doc_id'] }}

    {% endfor %}

    {{ _('Recent Solutions') }}

    {% for psdoc in psdocs %}

    PS{{ psdoc['doc_id'] }}

    {% endfor %}
    {% endif %}{# if psdocs #} {% endif %}{# if not pdocs and not psdocs #}
  • {{ _('Submissions') }} ({{ dudoc.nSubmit|default(0) }})

    {% if not rdocs %} {{ nothing.render('Oh, the user hasn\'t submitted yet!') }} {% else %}

    {{ _('Recent Submissions') }}

    {% for rdoc in rdocs %} {% with pdoc = pdict[(rdoc['domain_id'], rdoc['pid'])] %} {% include 'record_main_tr.html' %} {% endwith %} {% endfor %}
    {{ _('Status') }} {{ _('Problem') }} {{ _('Submit By') }} {{ _('Time') }} {{ _('Memory') }} {{ _('Language') }} {{ _('Submit At') }}
    {% endif %}
{% if is_self_profile %} {{ home.render_sidebar() }} {% endif %}
{% if handler.can_view(udoc, 'bio') %}

{{ _('Bio') }}{% if is_self_profile %} [{{ _('Edit') }}]{% endif %}

{% if udoc['bio'] and udoc['bio']|length > 0 %} {{ udoc['bio']|markdown }} {% else %} {{ _('The user is too lazy to leave something here...') }} {% endif %}
{% endif %}
{% endblock %}