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

Introduce an inclusion template for object comments

This commit is contained in:
jeremystretch
2021-07-21 14:20:14 -04:00
parent a9930bd442
commit 7be684835b
13 changed files with 26 additions and 140 deletions

View File

@@ -182,18 +182,7 @@
</div>
{% endif %}
</div>
<div class="card">
<h5 class="card-header">
Comments
</h5>
<div class="card-body rendered-markdown">
{% if object.comments %}
{{ object.comments|render_markdown }}
{% else %}
<span class="text-muted">None</span>
{% endif %}
</div>
</div>
{% include 'inc/comments_panel.html' %}
{% plugin_right_page object %}
</div>
</div>