{% extends "base.html" %} {% block body_class %}workspace-open-page{% endblock %} {% block content %} {% if mode == 'computers' %}
← {{ t('common.home') }}

{{ t('open.eyebrow') }}

{{ t('open.heading') }}

{{ t('open.copy') }}

{{ t('home.add_ssh') }}
{% if computer_removed %}

{{ t('home.computer_removed') }}

{% endif %}
{% if allow_local_workspaces %} {{ t('home.this_computer') }} {{ t('open.location_count', count=local_root_count) }} {{ t('open.workspace_count', count=local_workspace_count) }} {% endif %} {% for computer in computers %} {% set remote_status = remote_statuses.get(computer.id) %} {{ computer.name }} {% if computer.connection_method == 'ssh' %} {{ computer.username }}@{{ computer.host }}{% if computer.port != 22 %}:{{ computer.port }}{% endif %} {% else %} Termroom Node {% endif %} {{ remote_status.label }} {% if remote_status.last_success_label %}{{ t('remote.last_success', time=remote_status.last_success_label) }}{% else %}{{ t('open.workspace_count', count=workspace_counts.get(computer.id, 0)) }}{% endif %} {% endfor %}
{% elif mode == 'local' %}
← {% if has_remote_computers %}{{ t('open.computers') }}{% else %}{{ t('common.home') }}{% endif %}

{{ t('home.this_computer') }}

{{ t('open.local_heading') }}

{{ t('open.local_copy') }}

{% if error %}

{{ error }}

{% endif %} {% if location_removed %}

{{ t('open.location_removed') }}

{% endif %} {% if project_error and project_created %}
{{ project_error }} {% if project_created %}{{ project_created }}{% endif %} {% if project_existing %}
{% endif %} {% if project_workspace %}{{ t('project.retry_open') }}{% endif %} {% if project_created %}{{ t('project.back_folder') }}{% endif %}
{% endif %} {% if roots | length == 1 %}
{{ roots[0].label }}{{ roots[0].path }} {{ t('open.workspace_count', count=roots[0].workspace_count) }}
{% else %}

{{ t('open.locations') }}

{{ t('open.locations_copy') }}

{% for item in roots %}
{{ item.label }} {{ item.path }} {% if not item.available %}{{ t('open.location_unavailable_short') }}{% else %}{{ t('open.workspace_count', count=item.workspace_count) }}{% endif %} {% if item.removable %}
{% endif %}
{% endfor %}
{% endif %} {% if local_workspaces %}

{{ t('open.registered') }}

{{ t('open.registered_copy') }}

{% for workspace in local_workspaces %} {% if workspace.available %} {{ workspace.display_name }}{{ workspace.relative_path }} {% else %}
{{ workspace.display_name }}{{ workspace.relative_path }} · {{ t('open.workspace_unavailable') }}
{% endif %} {% endfor %}
{% endif %} {% if not root_unavailable %}
{% for crumb in breadcrumbs %} {% if loop.revindex == 2 %} {{ t('open.parent_folder') }} {% endif %} {% endfor %}
{{ t('browse.current') }}
{{ t('browse.selected_location') }}{{ current_path_display }}
{% for entry in entries %} {{ entry.name }} {% else %}
{{ t('browse.empty') }}

{{ t('browse.empty_copy') }}

{% endfor %}
{% endif %} {% if project_existing and not project_created %} {% endif %}
{{ t('project.new') }}
{{ t('project.computer') }}
{{ t('home.this_computer') }}
{{ t('project.location') }}
{{ current_path_display }}
{% if project_error and not project_created %} {% endif %}
{{ t('project.final_path') }} {{ current_path_display }}
{% elif mode == 'remote' %}
← {{ t('open.computers') }}

{{ t('common.remote') }}

{{ computer.name }}

{{ remote_status.label }} {% if remote_status.last_success_label %}{{ t('remote.last_success', time=remote_status.last_success_label) }}{% endif %} {% if computer.connection_method == 'ssh' %}{{ computer.username }}@{{ computer.host }}{% if computer.port != 22 %}:{{ computer.port }}{% endif %}{% endif %}

{% if computer.connection_method == 'ssh' %}
{% else %} {{ t('remote.check_again') }} {% endif %} {{ t('open.connection_settings') }}
{% if error %}

{{ error }}

{% endif %} {% if project_error and project_created %}
{{ project_error }} {% if project_created %}{{ project_created }}{% endif %} {% if project_existing %}
{% endif %} {% if project_workspace %}{{ t('project.retry_open') }}{% endif %} {% if project_created %}{{ t('project.back_folder') }}{% endif %}
{% endif %} {% if connected %}

{{ t('ssh.detail.connected_copy') }}

{% endif %}

{{ t('open.registered') }}

{{ t('open.remote_registered_copy') }}

{% if can_remote_run %} {{ t('remote_run.run_public_git') }} {{ t('remote_run.run_archive') }} {% endif %}
{% if remote_workspaces %}
{% for workspace in remote_workspaces %} {{ workspace.display_name }} {{ workspace.canonical_path }} {% endfor %}
{% else %}

{{ t('ssh.detail.no_workspace') }}

{% endif %}
{% if remote_runs %}

{{ t('remote_run.server_runs_heading') }}

{{ t('remote_run.server_runs_copy') }}

{% for run in remote_runs %} {{ run.source_label }} {{ run.state_label }} · {{ run.created_label }} {% endfor %}
{% endif %}

{{ t('open.add_workspace') }}

{{ t('ssh.detail.open_project_copy') }}

{{ t('open.browse_folders') }} {% if browse and not remote_picker %}{{ t('common.close') }}{% endif %} {{ t('open.direct_path_hint') }}
{% if browse_error %}

{{ browse_error }}

{% endif %}
{% if browse and remote_picker %}
{{ t('open.current_folder') }}{{ remote_picker.current }}
{% if remote_picker.parent_url %}{{ t('open.parent_folder') }}{% endif %} {{ t('common.close') }}
{% if remote_picker.hidden_count %} {% if remote_picker.show_hidden %}{{ t('browse.hide_hidden') }}{% else %}{{ t('browse.show_hidden', count=remote_picker.hidden_count) }}{% endif %} {% endif %}
{% for entry in remote_picker.entries %} {{ entry.name }} {% else %}

{{ t('open.folder_picker_empty') }}

{% endfor %}
{% endif %}
{% if project_existing and not project_created %} {% endif %}
{{ t('project.new') }}
{{ t('project.computer') }}
{{ computer.name }}
{{ t('project.location') }}
{{ remote_picker.current if remote_picker else '' }}
{% if project_error and not project_created %} {% endif %}
{{ t('project.final_path') }} {{ remote_picker.current if remote_picker else '' }}
{% endif %} {% endblock %} {% block scripts %} {% if mode == 'remote' and remote_runs %}{% endif %} {% endblock %}