Skip to content
Snippets Groups Projects
Select Git revision
  • 6d8f372f83f746171cb2b98b5c31be5e838db9fa
  • devel default
  • master
  • fo
  • jirka/typing
  • fo-base
  • mj/submit-images
  • jk/issue-96
  • jk/issue-196
  • honza/add-contestant
  • honza/mr7
  • honza/mrf
  • honza/mrd
  • honza/mra
  • honza/mr6
  • honza/submit-images
  • honza/kolo-vs-soutez
  • jh-stress-test-wip
  • shorten-schools
19 results

mo.css

Blame
  • org_contest.html 9.94 KiB
    {% extends "base.html" %}
    {% set round = contest.round %}
    {% set state = contest.state %}
    {% set ct_state = contest.ct_state() %}
    {% set can_manage = rights.have_right(Right.manage_contest) %}
    {% set can_upload = rights.can_upload_feedback() %}
    {% set can_edit_points = not site and rights.can_edit_points() %}
    {% set can_create_solutions = rights.can_upload_feedback() or rights.can_upload_solutions() %}
    {% set offer_view_statement, offer_view_statement_reason = rights.offer_view_statement() %}
    {% set can_view_contestants = rights.have_right(Right.view_contestants) %}
    {% set can_view_submits = rights.can_view_submits() %}
    
    {% block title %}
    {{ round.name }} {{ round.category }} {{ contest.place.name_locative() }}
    {% endblock %}
    {% block breadcrumbs %}
    {{ ctx.breadcrumbs() }}
    {% endblock %}
    
    {% block body %}
    {% if site %}
    <h3>Soutěžní místo: {{ site.name }}</h3>
    {% endif %}
    
    {% if not site %}
    <div class="row">
    <div class="col-sm-7">
    <div class="panel panel-default">
        <table class="table table-bordered">
            <tr>
                <td>Zadání úloh
                <td>
                    {% if offer_view_statement %}
                    <a class="btn btn-default" href='{{ ctx.url_for('org_task_statement', ct_id=None) }}'>
                        <img class="media-object" src="{{ url_for('static', filename='img/pdficon.svg') }}" alt="PDF" style="width: 24px; display: inline-block">
                        Stáhnout
                    </a>
                    {% else %}
                        {{ offer_view_statement_reason }}
                    {% endif %}
            <tr><td>Moje role<td>{% if g.user.is_admin %}správce{% elif roles %}{{ roles|join(", ") }}{% else %}–{% endif %}
            {% if group_contests|length > 1 %}
            <tr><td>Soutěže ve skupině kol<td>
                {% for c in group_contests %}
                    {% if c != contest %}<a href="{{ url_for('org_contest', ct_id=c.contest_id, site_id=(site.place_id if site else None)) }}">{% endif %}
                        {{ c.round.name }} {{ c.round.category }}
                    {% if c != contest %}</a>{% endif %}<br>
                {% endfor %}
            {% endif %}
        </table>
        {% if can_manage or g.user.is_admin %}
        <div class="panel-footer">
            {% if can_manage %}
            <a class="btn btn-xs btn-default" href='{{ ctx.url_for('org_contest_edit') }}'><span class="glyphicon glyphicon-cog"></span> Nastavení</a>
            {% endif %}
            {% if g.user.is_admin %}
            <a class="btn btn-xs btn-info" href="{{ log_url('contest', ctx.ct_id) }}">Historie</a>
            {% endif %}
        </div>
        {% endif %}
    </div>
    </div>
    <div class="col-sm-5">
    <div
    {% if state == RoundState.preparing %}
        class="panel panel-warning"
    {% elif state == RoundState.running %}
        class="panel panel-success"
    {% elif state == RoundState.grading %}
        class="panel panel-info"