mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2026-01-31 11:36:18 +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%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
.peer-lock-icon {
|
||||||
|
position: absolute;
|
||||||
|
right: 15px;
|
||||||
|
top: 48px;
|
||||||
|
opacity: 0.85;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user