{% 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 %}
{% 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 %}
{% if environment.project %}
{{ environment.project }}
{% else %}
{{ environment.dataset_identifier }}
{% endif %}
{% if not environment.has_dataset_access %}
You no longer have access to this dataset.
{% endif %}
{% if not environment.has_dataset_access %}
{# Dataset access revoked - workbench is stopped and pending automatic removal #}
Stopped — dataset access revoked. This workbench will be removed automatically.
{% elif environment|has_errors %}
{# Workbench has errors - show disabled state #}
Unavailable
{% elif environment.is_in_progress %}
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.
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.