{% 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 %}
{{ t('home.this_computer') }} {{ t('open.location_count', count=local_root_count) }} {{ t('open.workspace_count', count=local_workspace_count) }} {% for computer in computers %} {{ computer.name }} {{ computer.username }}@{{ computer.host }}{% if computer.port != 22 %}:{{ computer.port }}{% endif %} {% if computer.last_error %}{{ t('home.needs_check') }}{% 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 roots | length == 1 %}
{{ roots[0].label }}{{ roots[0].path }} {{ t('open.workspace_count', count=roots[0].workspace_count) }}
{{ t('open.add_location') }}
{% else %}

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

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

{{ t('open.add_location') }}
{% for item in roots %} {{ item.label }} {{ item.path }} {{ t('open.workspace_count', count=item.workspace_count) }} {% endfor %}
{% endif %} {% if local_workspaces %}

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

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

{% for workspace in local_workspaces %} {{ workspace.display_name }}{{ workspace.relative_path }} {% endfor %}
{% endif %}
{{ t('browse.current') }}
{% for entry in entries %} {{ entry.name }} {% else %}
{{ t('browse.empty') }}

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

{% endfor %}
{% elif mode == 'remote' %}
← {{ t('open.computers') }}

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

{{ computer.name }}

{{ computer.username }}@{{ computer.host }}{% if computer.port != 22 %}:{{ computer.port }}{% endif %}

{{ t('open.connection_settings') }}
{% if error %}

{{ error }}

{% endif %} {% if connected %}

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

{% endif %}

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

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

{% if remote_workspaces %}
{% for workspace in remote_workspaces %} {{ workspace.display_name }}{{ workspace.canonical_path }} {% endfor %}
{% else %}

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

{% 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 %}
{% endif %} {% endblock %}