{% extends "team/base.html.twig" %}

{% import 'macros.html.twig' as macros %}

{% block title %}Contest problems {{ current_team_contest.shortname | default('') }} - {{ parent() }}{% endblock %}

{% block extrahead %}
    {{ parent() }}
    {{ macros.mathjax_head() }}
    <style>
        .data-table td a, .data-table td a:hover {
            display: block;
            text-decoration: none;
            color: inherit;
            padding: 3px 5px;
        }

        .data-table tr {
            border-bottom: 1px solid silver;
        }

        .data-table tr:hover {
            background: #ffffcc !important;
        }
    </style>
{% endblock %}

{% block content %}
    {% include 'partials/problem_list.html.twig' with {
        contest: current_team_contest,
        show_contest_problemset: current_team_contest and current_team_contest.freezeData.started,
        contest_problemset_path: 'team_contest_problemset',
        problem_statement_path: 'team_problem_statement',
        problem_attachment_path: 'team_problem_attachment',
        problem_sample_zip_path: 'team_problem_sample_zip',
        show_submit_button: true,
        team: team
    } %}
{% endblock %}
