{% extends "base.html" %} {% from "_macros.html" import env_label %} {% block title %}{{ t('目标') }} · {{ product_name }}{% endblock %} {% block content %}
{{ t('只读:可查看环境与目标的连接信息;新增、修改、删除、启停、测试需要管理员。') }}
{{ t('请联系管理员创建环境并登记目标。') }}
{{ t('请联系管理员登记目标。') }}
{{ t('调整搜索词或类型筛选后再试。') }}
{{ t('清除筛选') }}| {{ t('名称') }} | {{ t('类型') }} | {{ t('端点') }} | {{ t('授权范围') }} | {{ t('状态') }} | {{ t('最近测试') }} |
|---|---|---|---|---|---|
| {{ target.name }} | {{ t(target.type_label) }} | {{ t(target.endpoint) }} |
{% for group in target.scope %}
{{ t(group.label) }}
{% if group.unlimited %}{{ t('不限') }}
{% elif group.values %}{% for value in group.values %}{{ value }}{% endfor %}
{% else %}{{ t('未授权') }}{% endif %}
{% endfor %}
|
{{ t('已启用') if target.enabled else t('已停用') }} |
{{ t('成功') if target.last_test_ok else (t('失败') if target.last_test_at_display else t('未测试')) }}
{% if target.last_test_at %}{{ local_time(target.last_test_at, extra='class="muted small"') }}{% endif %}
{% if target.last_test_error %}
{{ t('失败详情') }}
{% if target.last_test_command %}
{{ target.last_test_command }} {% endif %} |