{% set projects = user.spawner.get_state_field('projects') %}
Repository | Commit | Last used | Actions |
---|---|---|---|
{{ project['display_name'] }} | {{ project['ref'][:16] }} | {% if project_running %}running{% else %}{{ project['last_used'] }}{% 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 |