{% for gateway in data %} {% set gateway_label = gateway.name or gateway.id %} {% set can_modify = is_admin or gateway.ownerEmail == current_user_email or (gateway.visibility == 'team' and gateway.teamId and user_team_roles.get(gateway.teamId|string) == 'owner') %} {% set can_authorize = can_modify or gateway.visibility == 'public' or (gateway.visibility == 'team' and gateway.teamId and gateway.teamId|string in user_team_roles) %} {% endfor %}
Actions S. No. Gateway ID Name URL Tags Status Last Seen Owner Team Visibility
{{ (pagination.page - 1) * pagination.per_page + loop.index }} {{ gateway.id }} {{ gateway.name }} {{ gateway.url }} {% if gateway.tags %} {% for tag in gateway.tags %} {% if tag is mapping %}{{ tag.id }}{% else %}{{ tag }}{% endif %} {% endfor %} {% else %} None {% endif %} {% if gateway.enabled %} Active {% else %} Inactive {% endif %} {% if gateway.lastSeen %}{{ gateway.lastSeen[:19] if gateway.lastSeen is string else gateway.lastSeen.strftime('%Y-%m-%d %H:%M:%S') }}{% else %}Never{% endif %} {% if gateway.ownerEmail %}{{ gateway.ownerEmail }}{% else %}N/A{% endif %} {% if gateway.team %}{{ gateway.team }}{% else %}None{% endif %} {% if gateway.visibility == 'private' %} 🔒 Private {% elif gateway.visibility == 'team' %} 👥 Team {% elif gateway.visibility == 'public' %} 🌍 Public {% else %} N/A {% endif %}
{% set base_url = root_path + '/admin/gateways/partial' %} {% set hx_target = '#gateways-table' %} {% set hx_swap = 'outerHTML' %} {% set hx_indicator = '#gateways-loading' %} {% set table_name = 'gateways' %} {% set query_params = query_params if query_params is defined else {'include_inactive': include_inactive} %} {% include 'pagination_controls.html' %}