Add peer lock icon for route policy enforcement in peer data view

This commit is contained in:
Eduardo Silva
2026-01-27 14:43:38 -03:00
parent 20d5387232
commit e7c9ac3307
2 changed files with 13 additions and 0 deletions

View File

@@ -22,4 +22,10 @@
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.peer-lock-icon {
position: absolute;
right: 15px;
top: 48px;
opacity: 0.85;
}
</style> </style>

View File

@@ -10,6 +10,7 @@
</a> </a>
</h5> </h5>
<span> <span>
<div class="d-inline-flex flex-column align-items-end">
{% if user_acl.user_level >= 30 %} {% if user_acl.user_level >= 30 %}
<div class="d-inline-flex flex-column"> <div class="d-inline-flex flex-column">
<a href="/peer/sort/?peer={{ peer.uuid }}&direction=up" <a href="/peer/sort/?peer={{ peer.uuid }}&direction=up"
@@ -24,6 +25,12 @@
</div> </div>
</div> </div>
{% endif %} {% endif %}
{% if peer.is_route_policy_restricted %}
<i class="fas fa-lock peer-lock-icon" title="{% trans 'Route policy enforced' %}"></i>
{% endif %}
</div>
</span> </span>
</div> </div>
<b class="peer-extra-info">{% trans 'Throughput' %}: </b> <b class="peer-extra-info">{% trans 'Throughput' %}: </b>