{% extends "jury/base.html.twig" %} {% import "jury/jury_macros.twig" as macros %} {% block title %}Judgehost {{ judgehost.hostname }} - {{ parent() }}{% endblock %} {% block extrahead %} {{ parent() }} {{ macros.table_extrahead() }} {% endblock %} {% block content %}

Judgehost {{ judgehost.hostname | printHost }}

{% if judgehost.hidden %}
This judgehost is currently hidden.
{% endif %}
ID {{ judgehost.judgehostid }}
Enabled {{ judgehost.enabled | printYesNo }}
Status {% if not judgehost.polltime %} Judgehost never checked in. {% else %} {{ statusIcon|statusIcon }} {{ status }}, last checked in {{ judgehost.polltime | printtimediff }}s ago. {% endif %}
{%- if is_granted('ROLE_ADMIN') -%} {%- if judgehost.enabled -%} {% set url = path('jury_judgehost_disable', {judgehostid: judgehost.judgehostid}) %} {% set icon = 'pause' %} {% set action = 'Disable' %} {% set class = 'warning' %} {%- else -%} {% set url = path('jury_judgehost_enable', {judgehostid: judgehost.judgehostid}) %} {% set icon = 'play' %} {% set action = 'Enable' %} {% set class = 'success' %} {%- endif -%} {{ button(url, action, class, icon) }} {{ button(path('jury_judgehost_delete', {'judgehostid': judgehost.judgehostid}), 'Delete judgehost', 'danger', 'trash-alt', true) }} {% endif %} {% include 'jury/partials/rejudge_form.html.twig' with {table: 'judgehost', id: judgehost.judgehostid, buttonClass: 'btn-primary'} %}

Recent judgings

{% include 'jury/partials/judgehost_judgings.html.twig' %}
{% endblock %}