{% extends "base.html" %} {% macro env_label(env) -%} {%- if env.key == 'default' and env.title == '默认' -%}{{ t('默认') }}{%- else -%}{{ env.title }}{%- endif -%} {%- endmacro %} {% block title %}{{ t('目标') }} · {{ product_name }}{% endblock %} {% block content %}
{{ t('先新建环境,再在里面登记目标。') }}
{{ t('新建环境') }}{{ t('选一个类型,填写连接和允许访问的范围。') }}
{{ t('调整搜索词或类型筛选后再试。') }}
{{ t('清除筛选') }}| {{ t('名称') }} | {{ t('类型') }} | {{ t('端点') }} | {{ t('授权范围') }} | {{ t('状态') }} | {{ t('最近测试') }} | {{ t('操作') }} |
|---|---|---|---|---|---|---|
| {{ target.name }} {% if target.secret_fields and not target.secret_ok %}{{ t('密钥异常') }}{% endif %} | {{ t(target.type_label) }} | {{ t(target.endpoint) }} |
{{ t(target.scope_source, **target.scope_params) }}
{% for group in target.scope_groups %}
{{ t(group.label) }}
{% if group.unlimited %}{{ t('不限') }}
{% elif group.values %}{% for value in group.values %}{{ value }}{% endfor %}
{% else %}{{ t('未授权') }}{% endif %}
{% else %}
{{ t(target.scope_source, **target.scope_params) }}
{% endfor %}
|
{{ 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" data-test-time') }}{% else %}{% endif %}
{{ t('失败详情') }}
{% if target.last_test_message %}
{% endif %}
{% if target.last_test_command and target.client_extra %}
|