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

Introduce linkify template filter

This commit is contained in:
jeremystretch
2022-03-22 14:51:20 -04:00
parent dc92e19f76
commit 75dae5fbe8
68 changed files with 240 additions and 637 deletions

View File

@@ -56,7 +56,7 @@
<td>
<ul class="list-unstyled mb-0">
{% for object in objects %}
<li><a href="{{ object.get_absolute_url }}">{{ object }}</a></li>
<li>{{ object|linkify }}</li>
{% empty %}
<li class="text-muted">None</li>
{% endfor %}

View File

@@ -10,7 +10,7 @@
</label>
<div class="col-sm-9">
<div class="form-control-plaintext">
<a href="{{ object.parent.get_absolute_url }}" class="">{{ object.parent }}</a>
{{ object.parent|linkify }}
</div>
</div>
</div>

View File

@@ -18,21 +18,15 @@
<table class="table table-hover attr-table">
<tr>
<th scope="row">Object</th>
<td>
<a href="{{ object.assigned_object.get_absolute_url }}">{{ object.assigned_object }}</a>
</td>
<td>{{ object.assigned_object|linkify }}</td>
</tr>
<tr>
<th scope="row">Created</th>
<td>
{{ object.created|annotated_date }}
</td>
<td>{{ object.created|annotated_date }}</td>
</tr>
<tr>
<th scope="row">Created By</th>
<td>
{{ object.created_by }}
</td>
<td>{{ object.created_by }}</td>
</tr>
<tr>
<th scope="row">Kind</th>