mirror of
https://github.com/nidebr/as-stats-gui.git
synced 2025-02-20 11:23:18 +08:00
61 lines
2.2 KiB
Twig
61 lines
2.2 KiB
Twig
{% extends "pages/asset/index.html.twig" %}
|
|
|
|
{% set counter = 0 %}
|
|
|
|
{% block legend %}
|
|
{% if knownlinks is defined %}
|
|
{% include 'core/legend_simple.html.twig' %}
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block other_asset %}
|
|
{% if data.asset.whois.as_other is defined %}
|
|
<div class="card card-sm">
|
|
<div class="card-body">
|
|
<h3 class="card-title">
|
|
<strong>Other AS-SET</strong>
|
|
</h3>
|
|
|
|
<div class="list-group list-group-flush">
|
|
{% for asset in data.asset.whois.as_other %}
|
|
<a href="#" class="list-group-item list-group-item-action">{{ asset }}</a>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block graphs %}
|
|
<div class="col">
|
|
<div class="row row-cards">
|
|
<div class="space-y">
|
|
{% for as, as_data in data.asset.data.asinfo %}
|
|
{% set counter = counter + 1 %}
|
|
{% embed 'core/card_top.html.twig' with {as: as, as_data: as_data, data: data, counter: counter, hours: hours|default('24 hours')} only %}
|
|
{% block rank %}
|
|
# {{ counter }}
|
|
{% endblock %}
|
|
|
|
{% block title %}
|
|
<h3 class="mb-0">
|
|
<span class="me-2 flag flag-{{ as_data.info.country|default('eu')|lower }}"></span>
|
|
<strong>AS{{ as }}:</strong>
|
|
<span class="small text-uppercase"><i>{{ as_data.info.name|default(as_data.info.description|default('')) }}</i></span>
|
|
</h3>
|
|
{% endblock %}
|
|
|
|
{% block customlinks %}
|
|
<div class="col-md-auto">
|
|
<div class="mt-3 badges">
|
|
{{ custom_links_top(as)|raw }}
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
{% endembed %}
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|