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

Closes #8600: Document built-in template tags & filters

This commit is contained in:
jeremystretch
2022-02-09 16:01:58 -05:00
parent ee566723d7
commit 7c105019d8
25 changed files with 289 additions and 189 deletions

View File

@@ -13,7 +13,7 @@
</td>
<td>
{% if field.type == 'longtext' and value %}
{{ value|render_markdown }}
{{ value|markdown }}
{% elif field.type == 'boolean' and value == True %}
{% checkmark value true="True" %}
{% elif field.type == 'boolean' and value == False %}
@@ -21,7 +21,7 @@
{% elif field.type == 'url' and value %}
<a href="{{ value }}">{{ value|truncatechars:70 }}</a>
{% elif field.type == 'json' and value %}
<pre>{{ value|render_json }}</pre>
<pre>{{ value|json }}</pre>
{% elif field.type == 'multiselect' and value %}
{{ value|join:", " }}
{% elif field.type == 'object' and value %}