NetBox 3.0 support improvements

This commit is contained in:
Victor Golovanenko 2021-10-27 11:46:37 +03:00
parent c63c4d6795
commit c746b327d1
Signed by: drygdryg
GPG Key ID: 50E0F568281DB835
3 changed files with 5 additions and 7 deletions

View File

@ -1,3 +1,3 @@
<a href="{% url 'plugins:netbox_interface_sync:interface_comparison' device_id=device.id %}" class="btn btn-primary">
<a href="{% url 'plugins:netbox_interface_sync:interface_comparison' device_id=device.id %}" class="btn btn-sm btn-primary">
Interface sync
</a>

View File

@ -48,7 +48,7 @@ function uncheck(event) {
<form method="post">
<!-- Interface templates -->
{% csrf_token %}
<table class="table" style="background:#F5F5F5; width: 50%; float: left;">
<table class="table" style="width: 50%; float: left;">
<tr>
<th colspan="2">Device type</th>
<th>Actions</th>

View File

@ -1,8 +1,6 @@
<div class="panel panel-default">
<div class="panel-heading">
<strong>Number of interfaces</strong>
</div>
<div class="panel-body">
<div class="card">
<h5 class="card-header">Number of interfaces</h5>
<div class="card-body">
Total interfaces: {{ interfaces|length }}<br>
{% if config.exclude_virtual_interfaces %}
Non-virtual interfaces: {{ real_interfaces|length }}<br>