{% extends "workspaces/base.html" %} {% from "components/empty_state.html" import EmptyState %} {% from "components/alert.html" import Alert %} {% from "components/icon.html" import Icon %} {% block workspace_content %} {% if not workspace.members %} {% set user_can_invite = user_can(permissions.ASSIGN_AND_UNASSIGN_ATAT_ROLE) %} {{ EmptyState( 'There are currently no members in this Workspace.', action_label='Invite a new Member' if user_can_invite else None, action_href='/members/new' if user_can_invite else None, sub_message=None if user_can_invite else 'Please contact your JEDI Cloud workspace administrator to invite new members.', icon='avatar' ) }} {% else %} {% if new_member %} {% set message -%}

{{ new_member.user_name }} was successfully invited via email to this workspace. They do not yet have access to any environments.

Add environment access.

{%- endset %} {{ Alert('Member added successfully', message=message, level='success' ) }} {% endif %} {% if resent_invitation_to %} {% set message -%}

Successfully sent a new invitation to {{ resent_invitation_to }}.

{%- endset %} {{ Alert('Invitation resent', message=message, level='success' ) }} {% endif %} {% if revoked_member_name %} {% set message -%}

Removed {{ revoked_member_name }} from this workspace.

{%- endset %} {{ Alert('Removed workspace access', message=message, level='success' ) }} {% endif %} {% set member_name = request.args.get("memberName") %} {% set updated_role = request.args.get("updatedRole") %} {% if updated_role %} {% set message -%}

{{ member_name }}'s role was successfully updated to {{ updated_role }}

{%- endset %} {{ Alert('Workspace role updated successfully', message=message, level='success' ) }} {% endif %}
!{ col.displayName } {{ Icon("caret_down") }} {{ Icon("caret_up") }}
No Environment Access
{{ EmptyState( 'No members found.', action_label=None, action_href=None, sub_message='Please try a different search.', icon=None ) }}
{% endif %} {% endblock %}