1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Humanized Circuit speed display

This commit is contained in:
Jeremy Stretch
2016-06-20 15:58:18 -04:00
parent c456248e0c
commit ccc52348be
6 changed files with 34 additions and 9 deletions

View File

@@ -79,11 +79,11 @@
</tr>
<tr>
<td>Port Speed</td>
<td>{{ circuit.port_speed }} Kbps</td>
<td>{{ circuit.port_speed_human }}</td>
</tr>
<tr>
<td>Commit Rate</td>
<td>{% if circuit.commit_rate %}{{ circuit.commit_rate }} Kbps{% else %}<span class="text-muted">N/A</span>{% endif %}</td>
<td>{% if circuit.commit_rate %}{{ circuit.commit_rate_human }}{% else %}<span class="text-muted">N/A</span>{% endif %}</td>
</tr>
<tr>
<td>Cross-Connect</td>

View File

@@ -55,12 +55,12 @@
</tr>
<tr>
<td>Port Speed</td>
<td>Speed in Mbps (optional)</td>
<td>Physical speed in Kbps/td>
<td>10000</td>
</tr>
<tr>
<td>Commit rate</td>
<td>Speed in Mbps (optional)</td>
<td>Commited rate in Kbps (optional)</td>
<td>2000</td>
</tr>
<tr>

View File

@@ -90,7 +90,7 @@
<a href="{% url 'dcim:device' pk=c.interface.device.pk %}">{{ c.interface.device }}</a>
{% endif %}
</td>
<td>{{ c.port_speed }} Kbps</td>
<td>{{ c.port_speed_human }}</td>
</tr>
{% empty %}
<tr>