{% load action_buttons %} {% load environment_templatetags %} {% if recent_workflow %} {% if recent_workflow_failed %} {% elif recent_workflow_succeeded %} {% endif %} {% endif %}
+ Shared Workspace
{% if shared_workspaces %} {% for workspace in shared_workspaces %}
{{ workspace.gcp_project_id }}
{% if workspace.gcp_billing_id %} {% if workspace.is_owner %} Billing Account: ({{ billing_account_id_to_name_map|get_dict_value:workspace.gcp_billing_id }}, {{ workspace.gcp_billing_id }}) Change billing account {% endif %} {% elif workspace.is_owner %} {# No billing account attached - show warning and change billing button #} ⚠️ No billing account connected Connect billing account {% endif %} {# Display billing-specific error message when billing issues are detected #} {% if workspace|has_billing_issues %} {% endif %} {# Display service errors as badges #} {% service_error_display entity=workspace group_by_severity=True %}
{% if not workspace.status.value == "created" %}
{{ workspace.status.value|capfirst }}...
Loading...
{% else %}
{% if workspace|has_errors %} Service Issues {% endif %} {% if workspace|has_billing_issues %} Billing Issues {% endif %} {% shared_workspace_destroy_modal_button shared_workspace=workspace %}
{% endif %}
{% if workspace.status.value == "created" %}
{% if workspace.buckets %} {% comment %} Show buckets even if there are service errors {% endcomment %}
    {% for bucket in workspace.buckets %}
  • {{ bucket.name }}

    {% if bucket.is_owner %} {% delete_shared_bucket_modal_button shared_bucket=bucket %} Manage {% elif bucket.is_admin %} Manage files {% else %} Shared {% endif %}
  • {% endfor %}
{% else %}
{% if workspace|has_billing_issues %}
Workspace functionality disabled due to billing issues. {% if workspace.is_owner %}
Please resolve billing configuration above to create buckets. {% else %}
Contact the workspace owner to resolve billing issues. {% endif %}
{% elif workspace|has_errors %}
No buckets available due to service issues above.
{% else %} You don't have any buckets in this workspace.
Create one using the button below. {% endif %}
{% endif %} {% if workspace.is_owner and workspace|workspace_functional and not workspace|has_billing_issues %} {% elif workspace.is_owner and not workspace|workspace_functional %}
Cannot create shared bucket due to service issues above
{% endif %}
{% endif %}
{% endfor %} {% else %}
You don't have any shared workspaces yet.
Create one before creating a bucket.
{% endif %}