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:
@@ -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 %}
|
||||
|
@@ -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>
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user