{% set page_name = "homepage" %} {% extends "layout/basic.html" %} {% import "components/contest.html" as contest with context %} {% import "components/problem.html" as problem with context %} {% block content %}
{% if domain['bulletin'] %}
{{ domain['bulletin']|markdown|safe }}
{% endif %} {% for node in contents %} {% if node[0] == 'contest' %} {% set tdocs = node[1] %} {% set tsdict = node[2] %} {% include "partials/homepage/contest.html" %} {% elif node[0] == 'homework' %} {% set htdocs = node[1] %} {% set htsdict = node[2] %} {% include "partials/homepage/homework.html" %} {% elif node[0] == 'training' %} {% set tdocs = node[1] %} {% set tsdict = node[2] %} {% include "partials/homepage/training.html" %} {% elif node[0] == 'ranking' %} {% set uids = node[1] %} {% include "partials/homepage/ranking.html" %} {% elif node[0] == 'discussion' %} {% set ddocs = node[1] %} {% set vndict = node[2] %} {% if ddocs.length %}

{{ _('Discussion') }}

{% include "partials/discussion_list.html" %}
{% endif %} {% endif %} {% endfor %}

{{ _('Hitokoto') }}

{% if pdocs.length %}

{{ _('Starred Problems') }}

{%- for pdoc in pdocs -%}
{{ problem.render_problem_title(pdoc, show_tags=false, show_invisible_flag=false) }}
{%- endfor -%}
{% endif %} {% if handler.user.hasPerm(perm.PERM_VIEW_DISCUSSION) %} {% include 'partials/discussion_nodes_widget.html' %} {% endif %}

{{ _('Recommended') }}

{% endblock %}