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

Added template tag for tag links

This commit is contained in:
Jeremy Stretch
2018-05-18 11:09:11 -04:00
parent 5247f10d7e
commit e6b3983a4e
17 changed files with 122 additions and 16 deletions

View File

@@ -112,7 +112,13 @@
</tr>
<tr>
<td>Tags</td>
<td>{{ circuit.tags.all|join:" " }}</td>
<td>
{% for tag in circuit.tags.all %}
{% tag 'circuits:circuit_list' tag %}
{% empty %}
<span class="text-muted">N/A</span>
{% endfor %}
</td>
</tr>
</table>
</div>

View File

@@ -104,7 +104,13 @@
</tr>
<tr>
<td>Tags</td>
<td>{{ provider.tags.all|join:" " }}</td>
<td>
{% for tag in provider.tags.all %}
{% tag 'circuits:provider_list' tag %}
{% empty %}
<span class="text-muted">N/A</span>
{% endfor %}
</td>
</tr>
<tr>
<td>Circuits</td>