{% load action_buttons %} {% load environment_templatetags %} {% if recent_workflow %} {% if recent_workflow_failed %} {% elif recent_workflow_succeeded %} {% endif %} {% endif %}
+ Workspace
{% if workspaces_with_workbenches %} {% for workspace in workspaces_with_workbenches %}
{{ workspace.gcp_project_id }}
{% if workspace.is_owner %} {% if workspace.gcp_billing_id %} Billing Account: ({{ billing_account_id_to_name_map|get_dict_value:workspace.gcp_billing_id }}, {{ workspace.gcp_billing_id }}) {% elif workspace.status.value == "created" %} {% endif %} {% if workspace.status.value == "created" %} Check workspace quotas {% if workspace.gcp_billing_id %} Change billing account {% endif %} {% endif %} {% elif workspace.status.value == "created" %} (shared) {% else %} (shared) {% if not workspace.gcp_billing_id and workspace.status.value == "created" %} {% endif %} {% endif %} {# Display service errors as badges #} {% service_error_display entity=workspace %}
{% if not workspace.status.value == "created" %}
{{ workspace.status.value|capfirst }}...
Loading...
{% else %} {% if workspace.is_accessible is not None and not workspace.is_accessible %} Inaccessible {% elif workspace|has_errors %} Service Issues {% elif workspace.is_owner %}
{% workspace_destroy_modal_button workspace=workspace %}
{% if should_display_google_link %} Go to Google console {% endif %}
{% endif %} {% endif %}
{% if workspace.status.value == "created" %}
{% if workspace.workbenches %} {% comment %} Show workbenches even if there are service errors {% endcomment %}
    {% for environment in workspace.workbenches %}
  • {# Show workbench service errors #} {% service_error_display entity=environment error_prefix="Workbench Error" %} {% if environment.status.value == "creating" %}
    Creating...
    {% else %}
    Environment type: {% if environment.type.value == "collaborative" %} Collaborative Jupyter {% else %} {{ environment.type.value|capfirst }} {% endif %}
    CPU: {{ environment.cpu }}
    Memory: {{ environment.memory }}
    Region: {{ environment.region.value }}
    {{ environment.status.value|capfirst }}
    {% if environment|has_errors %} {# Workbench has errors - show disabled state #} Unavailable {% elif environment.is_in_progress %}
    Loading...
    {% elif environment.is_running or environment.is_paused %} {% if environment.is_running %} Open {% if workspace.is_owner %} {% environment_modal_button environment=environment button_type="modal_pause" %} {% endif %} {% elif workspace.is_owner %} {% environment_modal_button environment=environment button_type="modal_start" %} {% endif %} {% if environment.type.value == "collaborative" and user.username == environment.workbench_owner_username %} Manage {% endif %} {% if workspace.is_owner %} {% environment_modal_button environment=environment button_type="modal_instance" %} {% environment_modal_button environment=environment button_type="modal_destroy" %} {% elif environment.type.value == "collaborative" and environment.service_account_name %} {% environment_modal_button environment=environment button_type="modal_leave" %} {% endif %} {% endif %}
    {% endif %}
  • {% endfor %}
{% else %}
{% if workspace|has_errors %}
No workbenches available due to service issues above.
{% else %} You don't have any workbenches in this workspace.
Create one using the button below. {% endif %}
{% endif %} {% if workspace.is_owner %} {% if workspace.is_accessible is not None and not workspace.is_accessible %}
Workspace inaccessible{% if workspace.access_denial_reason %}: {{ workspace.access_denial_reason }}{% endif %}.
Reach out to support@healthdatanexus.ai for assistance.
{% elif workspace|workspace_functional %} {% else %}
Cannot create research environment due to service issues above
{% endif %} {% else %} {% if workspace.is_accessible is not None and not workspace.is_accessible %}
Shared workspace inaccessible{% if workspace.access_denial_reason %}: {{ workspace.access_denial_reason }}{% endif %}.
Reach out to support@healthdatanexus.ai for help.
{% endif %} {% endif %}
{% endif %}
{% endfor %} {% else %}
You don't have any workspaces yet.
Create one before creating a workbench.
{% endif %}