{% from "icons.html.j2" import icon %} {% macro alarm_ok() %} {% endmacro %} {% macro alarm_unknown() %} {% endmacro %} {% macro alarm_critical() %} {% endmacro %} {% macro alarms_table(alarms) %}
{% for alarm in alarms %} {% endfor %}
Resource Aspect State Message Last Update
{{ alarm.target | describe_brn }} {{ alarm.aspect }} {{ alarm.alarm_state.name }} {{ alarm.text }} {{ alarm.last_updated | format_datetime }}
{% endmacro %} {% macro instances_table(application, instances) %}
{% for instance in instances %} {% if not instance.destroyed %} {% endif %} {% endfor %}
Group Provider Region Instance ID Created Alarms Actions
{{ instance.group.group_name }} {{ instance.provider }} {{ instance.region }} {{ instance.instance_id }} {{ instance.added | format_datetime }} {% for alarm in [] %} {% if alarm.alarm_state.name == "OK" %} {{ alarm_ok() }} {% elif alarm.alarm_state.name == "UNKNOWN" %} {{ alarm_unknown() }} {% else %} {{ alarm_critical() }} {% endif %} {% endfor %} {% if application in ["eotk"] %} Preview Configuration {% endif %} {{ icon("terminal") }}
{% endmacro %} {% macro eotk_table(instances) %} {{ instances_table("eotk", instances) }} {% endmacro %} {% macro automations_table(automations, states) %}
{% for automation in automations %} {% endfor %}
Description Status Enabled Storage Last Run Next Run Actions
{{ automation.description }} {% if automation.state.name == "IDLE" %} 🕰️ {% elif automation.state.name == "RUNNING" %} 🏃 {% else %} 💥 {% endif %} {% if automation.enabled %}✅{% else %}❌{% endif %} {% if automation.short_name in states %} {% if states[automation.short_name].lock %}🔒{% else %}🔓{% endif %} {% else %} {% endif %} {{ automation.last_run | format_datetime }} {{ automation.next_run | format_datetime }} View/Edit Kick Timer
{% endmacro %} {% macro automation_logs_table(logs) %}
{% for log in logs %} {% endfor %}
Log Created Log
{{ log.added | format_datetime }}
{{ log.logs | e }}
{% endmacro %} {% macro cloud_accounts_table(accounts) %}
{% for account in accounts %} {% if not account.destroyed %} {% endif %} {% endfor %}
Provider Description Enabled
{{ account.provider.description }} {{ account.description }} {% if account.enabled %}✅{% else %}❌{% endif %} View/Edit
{% endmacro %} {% macro groups_table(groups, pool=None) %}
{% for group in groups %} {% endfor %}
Name Description EOTK Sites Actions
{{ group.group_name }} {{ group.description }} {% if group.eotk %}✅{% else %}❌{% endif %} {{ group.origins | length }} View/Edit {% if pool %} Remove {% endif %}
{% endmacro %} {% macro origins_table(origins) %}
{% for origin in origins %} {% if not origin.destroyed %} {% endif %} {% endfor %}
Name Description Auto-Rotation Smart Proxy Assets Origin Onion Service Group Actions
{{ origin.domain_name }} {{ origin.description }} {% if origin.auto_rotation %}✅{% else %}❌{% endif %} {% if origin.smart %}✅{% else %}❌{% endif %} {% if origin.assets %}✅{% else %}❌{% endif %} {% if origin.onion() %}✅{% else %}❌{% endif %} {{ origin.group.group_name }} View/Edit Destroy
{% endmacro %} {% macro origin_onion_table(origins) %}
{% for origin in origins %} {% if not origin.destroyed %} {% endif %} {% endfor %}
Name Description Onion Service Group Actions
{{ origin.domain_name }} {{ origin.description }} {% if origin.onion() %} {{ origin.onion() }} {% endif %} {{ origin.group.group_name }} View/Edit
{% endmacro %} {% macro onions_table(onions) %}
{% for onion in onions %} {% if not onion.destroyed %} {% endif %} {% endfor %}
Domain Name Onion Name Description Group Actions
{{ onion.domain_name }} {{ onion.onion_name }}
{{ onion.calculated_onion_name }}
{{ onion.description }} {{ onion.group.group_name }} View/Edit Destroy
{% endmacro %} {% macro pools_table(pools) %}
{% for pool in pools %} {% endfor %}
Name Description Actions
{{ pool.pool_name }} {{ pool.description }} View/Edit Copy API key
{% endmacro %} {% macro proxies_table(proxies) %}
{% for proxy in proxies %} {% if not proxy.destroyed %} {% endif %} {% endfor %}
Origin Domain Name Pool Group Provider URL Created Alarms Actions
{{ proxy.origin.domain_name }} {{ proxy.pool.pool_name }} {{ proxy.origin.group.group_name }} {{ proxy.provider }} {{ proxy.url }} {{ proxy.added | format_datetime }} {% for alarm in proxy.alarms %} {% if alarm.alarm_state.name == "OK" %} {{ alarm_ok() }} {% elif alarm.alarm_state.name == "UNKNOWN" %} {{ alarm_unknown() }} {% else %} {{ alarm_critical() }} {% endif %} {% endfor %} {% if proxy.deprecated %} Expiring in {{ proxy.deprecated | mirror_expiry }} Expire {% else %} Mark blocked {% endif %}
{% endmacro %} {% macro bridgeconfs_table(bridgeconfs) %}
{% for bridgeconf in bridgeconfs %} {% if not bridgeconf.destroyed %} {% endif %} {% endfor %}
Pool Distribution Method Target Number Max Number Expiry Timer Actions
{{ bridgeconf.pool.pool_name }} {{ bridgeconf.method }} {{ bridgeconf.target_number }} {{ bridgeconf.max_number }} {{ bridgeconf.expiry_hours }} View/Edit Destroy
{% endmacro %} {% macro bridges_table(bridges) %}
{% for bridge in bridges %} {% if not bridge.destroyed %} {% endif %} {% endfor %}
Nickname Hashed Fingerprint Pool Configuration Cloud Account Alarms Actions
{{ bridge.nickname }} {{ bridge.hashed_fingerprint }} {{ bridge.conf.pool.pool_name }} {{ bridge.conf.description }} ({{ bridge.conf.method }}) {{ bridge.cloud_account.provider.description }} ({{ bridge.cloud_account.description }}) {% for alarm in bridge.alarms %} {% if alarm.alarm_state.name == "OK" %} {% elif alarm.alarm_state.name == "UNKNOWN" %} {% else %} {% endif %} {% endfor %} {% if bridge.deprecated %} Expiring in {{ bridge | bridge_expiry }} Expire {% else %} Mark blocked {% endif %}
{% endmacro %} {% macro mirrorlists_table(mirrorlists) %}
{% for list in mirrorlists %} {% if not list.destroyed %} {% endif %} {% endfor %}
Pool Provider Format Encoding URI Description Actions
{{ list.pool.pool_name }} {{ list.provider | provider_name }} {{ list.format | format_name }} {{ list.encoding | list_encoding_name }} {{ list.url() }} {{ list.description }} View/Edit Preview Destroy
{% endmacro %} {% macro static_table(statics) %}
{% for static in statics %} {% if not static.destroyed %} {% endif %} {% endfor %}
Description Origin URL Keanu Convene Auto-Rotation Group Actions
{{ static.description }} {% if static.origin_domain_name %} {{ static.origin_domain_name }} {% else %} Still deploying {% endif %} {% if static.origin_domain_name and static.keanu_convene_path %} {% else %} Still deploying {% endif %} {% if static.auto_rotate %}✅{% else %}❌{% endif %} {{ static.group.group_name }} View/Edit Destroy
{% endmacro %} {% macro webhook_table(webhooks) %}
{% for webhook in webhooks %} {% if not webhook.destroyed %} {% endif %} {% endfor %}
Description Format URL
{{ webhook.description }} {{ webhook.format | webhook_format_name }} {{ webhook.url }} Destroy
{% endmacro %}