{% set projects = user.spawner.get_state_field('projects') %}

Your Projects

{% for project in projects %} {% set project_running = loop.index == loop.length and user.running %} {% set project_active = loop.index == loop.length and user.spawner.active %} {% set project_not_active = user.spawner._stop_pending or (user.spawner.active and loop.index != loop.length) %} {% endfor %}
Repository Commit Last used Actions
{{ project[3] }} {{ project[2][:16] }} {% if project_running %}running{% else %}{{ project[4] }}{% endif %} {% if project_running %} {# last element in projects is currently running, add Stop button for it #} Stop {% endif %} {# add launch button for each element, if user has no server running #} {# if last element is running, hide launch buttons of all other elements #} {% if project_active %}My Server{% else %}Launch{% endif %} Delete
You have no projects.
{# Modal for project deletion dialog #}