-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
248 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{% extends 'generic/object_list.html' %} | ||
{% load i18n %} | ||
|
||
{% block title %}Managed Records{% endblock %} | ||
{% block title %}{% trans "Managed Records" %}{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,30 @@ | ||
{% load render_table from django_tables2 %} | ||
{% load perms %} | ||
{% load i18n %} | ||
|
||
{% if perms.netbox_dns.view_record %} | ||
{% if related_address_records %} | ||
{% if related_address_records.rows|length == 1 %} | ||
{% include 'inc/panel_table.html' with table=related_address_records heading='Related DNS Address Record' %} | ||
{% else %} | ||
{% include 'inc/panel_table.html' with table=related_address_records heading='Related DNS Address Records' %} | ||
{% endif %} | ||
{% endif %} | ||
{% if related_pointer_records %} | ||
{% if related_pointer_records.rows|length == 1 %} | ||
{% include 'inc/panel_table.html' with table=related_pointer_records heading='Related DNS Pointer Record' %} | ||
{% else %} | ||
{% include 'inc/panel_table.html' with table=related_pointer_records heading='Related DNS Pointer Records' %} | ||
{% endif %} | ||
{% endif %} | ||
{% if related_address_records %} | ||
<div class="card"> | ||
{% if related_address_records.rows|length == 1 %} | ||
<h2 class="card-header">{% trans "Related DNS Address Record" %}</h2> | ||
{% else %} | ||
<h2 class="card-header">{% trans "Related DNS Address Records" %}</h2> | ||
{% endif %} | ||
<div class="table-responsive"> | ||
{% render_table related_address_records 'inc/table.html' %} | ||
</div> | ||
</div> | ||
{% endif %} | ||
{% if related_pointer_records %} | ||
<div class="card"> | ||
{% if related_pointer_records.rows|length == 1 %} | ||
<h2 class="card-header">{% trans "Related DNS Pointer Record" %}</h2> | ||
{% else %} | ||
<h2 class="card-header">{% trans "Related DNS Pointer Records" %}</h2> | ||
{% endif %} | ||
<div class="table-responsive"> | ||
{% render_table related_pointer_records 'inc/table.html' %} | ||
</div> | ||
</div> | ||
{% endif %} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.