mirror of
https://github.com/netbox-community/netbox.git
synced 2026-01-12 14:52:17 -06:00
* feat(ipam): Add ASDOT notation support for ASN ranges Introduces ASDOT notation for ASN Ranges to improve readability of large AS numbers. Adds `start_asdot` and `end_asdot` properties, columns, and display logic for ASN ranges in the UI. Fixes #20309 * Wrap "ASDOT" with parentheses in column header --------- Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
57 lines
1.7 KiB
HTML
57 lines
1.7 KiB
HTML
{% extends 'ipam/asnrange/base.html' %}
|
|
{% load buttons %}
|
|
{% load helpers %}
|
|
{% load plugins %}
|
|
{% load render_table from django_tables2 %}
|
|
{% load i18n %}
|
|
|
|
{% block content %}
|
|
<div class="row">
|
|
<div class="col col-12 col-md-6">
|
|
<div class="card">
|
|
<h2 class="card-header">{% trans "ASN Range" %}</h2>
|
|
<table class="table table-hover attr-table">
|
|
<tr>
|
|
<th scope="row">{% trans "Name" %}</th>
|
|
<td>{{ object.name }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">{% trans "RIR" %}</th>
|
|
<td>
|
|
<a href="{% url 'ipam:asnrange_list' %}?rir={{ object.rir.slug }}">{{ object.rir }}</a>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">{% trans "Range" %}</th>
|
|
<td>{{ object.range_as_string_with_asdot }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">{% trans "Tenant" %}</th>
|
|
<td>
|
|
{% if object.tenant.group %}
|
|
{{ object.tenant.group|linkify }} /
|
|
{% endif %}
|
|
{{ object.tenant|linkify|placeholder }}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">{% trans "Description" %}</th>
|
|
<td>{{ object.description|placeholder }}</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
{% plugin_left_page object %}
|
|
{% include 'inc/panels/tags.html' %}
|
|
</div>
|
|
<div class="col col-12 col-md-6">
|
|
{% include 'inc/panels/custom_fields.html' %}
|
|
{% plugin_right_page object %}
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col col-md-12">
|
|
{% plugin_full_width_page object %}
|
|
</div>
|
|
</div>
|
|
{% endblock content %}
|