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

Extend linkify() to accept an attr name for the link text

This commit is contained in:
jeremystretch
2022-03-22 15:17:34 -04:00
parent 75dae5fbe8
commit 8d682041a4
14 changed files with 33 additions and 52 deletions

View File

@@ -66,7 +66,7 @@
<td>
{% if object.tenant %}
{% if object.tenant.group %}
{{ object.tenant.group|linkify }}/
{{ object.tenant.group|linkify }} /
{% endif %}
{{ object|linkify }}
{% else %}
@@ -206,9 +206,7 @@
</tr>
{% for resv in reservations %}
<tr>
<td>
<a href="{{ resv.get_absolute_url }}">{{ resv.unit_list }}</a>
</td>
<td>{{ resv|linkify:"unit_list" }}</td>
<td>{{ resv.tenant|linkify|placeholder }}</td>
<td>
{{ resv.description }}<br />