mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2026-01-31 03:26:17 +00:00
Add peer lock icon for route policy enforcement in peer data view
This commit is contained in:
@@ -22,4 +22,10 @@
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.peer-lock-icon {
|
||||
position: absolute;
|
||||
right: 15px;
|
||||
top: 48px;
|
||||
opacity: 0.85;
|
||||
}
|
||||
</style>
|
||||
@@ -10,6 +10,7 @@
|
||||
</a>
|
||||
</h5>
|
||||
<span>
|
||||
<div class="d-inline-flex flex-column align-items-end">
|
||||
{% if user_acl.user_level >= 30 %}
|
||||
<div class="d-inline-flex flex-column">
|
||||
<a href="/peer/sort/?peer={{ peer.uuid }}&direction=up"
|
||||
@@ -24,6 +25,12 @@
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if peer.is_route_policy_restricted %}
|
||||
<i class="fas fa-lock peer-lock-icon" title="{% trans 'Route policy enforced' %}"></i>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
</span>
|
||||
</div>
|
||||
<b class="peer-extra-info">{% trans 'Throughput' %}: </b>
|
||||
|
||||
Reference in New Issue
Block a user