{% if shared_workspaces %}
{% for workspace in shared_workspaces %}
{{ workspace.gcp_project_id }}
{% if workspace|has_errors %}
Service Issues
{% endif %}
{% if workspace|has_billing_issues %}
Billing Issues
{% endif %}
{% 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 %}
⚠️ Billing Configuration Required:
This workspace requires billing account configuration to function properly.
{% if workspace.is_owner %}
Please use the "Change billing account" button above to resolve this issue.
{% else %}
Please contact the workspace owner to resolve billing issues.
{% endif %}
{% endif %}
{# Display service errors as badges #}
{% if workspace|has_errors %}
{% for error in workspace.service_errors %}
{{ error|error_message }}
{% if error|error_action_link %}
{{ error|error_action_text }}
{% endif %}
{% endfor %}