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
+2 -6
View File
@@ -152,9 +152,7 @@
</tr>
<tr>
<th scope="row">Name</th>
<td>
<a href="{{ iface.get_absolute_url }}">{{ iface.name }}</a>
</td>
<td>{{ iface|linkify:"name" }}</td>
</tr>
<tr>
<th scope="row">Type</th>
@@ -370,9 +368,7 @@
&mdash;
{% endif %}
</td>
<td>
<a href="{{ wlan.get_absolute_url }}">{{ wlan.ssid }}</a>
</td>
<td>{{ wlan|linkify:"ssid" }}</td>
</tr>
{% empty %}
<tr>