| {{ _('Type') }} | -{{ _('Value') }} | -{{ _('Added') }} | -- |
|---|---|---|---|
| - {% if entry.type == "email" %} - {{ _('Email') }} - {% elif entry.type == "domain" %} - {{ _('Domain') }} - {% elif entry.type == "pattern" %} - {{ _('Pattern') }} - {% endif %} - | -{{ entry.value }} | -{{ entry.created_at | time_ago }} | -- - | -
| {{ _('Type') }} | +{{ _('Value') }} | +{{ _('Added') }} | ++ |
| + {% if entry.type == "email" %} + {{ _('Email') }} + {% elif entry.type == "domain" %} + {{ _('Domain') }} + {% elif entry.type == "pattern" %} + {{ _('Pattern') }} + {% endif %} + | ++ {{ entry.value }} + | +{{ entry.created_at | time_ago }} | ++ {% set trigger %} {% include "icons/trash-2.svg" %} {{ + _('Delete') }} {% endset %} {% call dialog( trigger=trigger, + title=_('Delete this entry?'), description=_('Are you sure + you want to delete this allowlist entry? This action cannot + be undone.'), trigger_attrs={"class": "btn-sm-ghost + text-destructive"}, dialog_attrs={"class": "max-w-md"}, + cancel_label=_('Cancel'), confirm_label=_('Delete'), + confirm_attrs={ "hx-post": "", "hx-target": "closest .card", + "hx-swap": "outerHTML", "hx-indicator": "next + .htmx-indicator", "hx-push-url": "false", "hx-vals": + '{"csrf_token": "' + + allowlist_delete_form.csrf_token._value() + '", "entry_id": + "' + entry.id|string + '", "action": "delete_allowlist"}' } + ) %} {% endcall %} + | +
{{ _('No allowlist entries found.') }}
-{{ _('Manage the members of the team.') }}
-{{ _('Manage the members of the team.') }}
+{{ _('Manage the teams you are a member of.') }}
-{{ _('Manage the teams you are a member of.') }}
+| - | {{ _('Name') }} | -{{ _('Role') }} | -- |
|---|---|---|---|
| - {{ avatar(item=team, prefix="team", name=team.name, size="sm") }} - | -- - {{ team.name }} - - {% if team.id == current_user.default_team_id %} - {{ _('Default') }} - {% endif %} - | -{{ roles[role] }} | -- {% if team.id != current_user.default_team_id %} - - {% else %} - - {% endif %} - | -
| + | {{ _('Name') }} | +{{ _('Role') }} | ++ |
|---|---|---|---|
| + {{ avatar(item=team, prefix="team", name=team.name, + size="sm") }} + | ++ + {{ team.name }} + + {% if team.id == current_user.default_team_id %} + {{ _('Default') }} + {% endif %} + | ++ {{ roles[role] }} + | ++ {% if team.id != current_user.default_team_id %} {% + set trigger %} {% include "icons/log-out.svg" %} {% + endset %} {% call dialog( trigger=trigger, + title=_('Leave "%(team)s"?', team=team.name), + description=_('Are you sure you want to leave this + team? You will lose access to all projects within + this team.'), trigger_attrs={ "class": + "btn-sm-icon-ghost", "aria-label": _('Leave team'), + "data-tooltip": _('Leave team'), "data-align": "end" + }, dialog_attrs={"class": "max-w-md"}, + cancel_label=_('Cancel'), confirm_label=_('Leave + Team'), confirm_attrs={ "hx-post": + url_for('user_settings').include_query_params(fragment='teams'), + "hx-target": "closest .card", "hx-swap": + "outerHTML", "hx-indicator": "next .htmx-indicator", + "hx-vals": '{"csrf_token": "' + + leave_team_form.csrf_token._value() + '", "team_id": + "' + team.id|string + '"}', "@click": + "$el.closest('dialog').close()" } ) %} {% endcall %} + {% else %} + + {% endif %} + | +