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

Closes #9887: Inspect docs_url property to determine link to model documentation

This commit is contained in:
jeremystretch
2022-10-27 09:44:09 -04:00
parent ec4e2a8e16
commit dbe66596f9
5 changed files with 14 additions and 10 deletions

View File

@@ -37,9 +37,9 @@ Context:
{% endif %}
{# Link to model documentation #}
{% if object and settings.DOCS_ROOT %}
{% if settings.DOCS_ROOT and object.docs_url %}
<div class="float-end">
<a href="{{ object|get_docs_url }}" target="_blank" class="btn btn-sm btn-outline-secondary" title="View model documentation">
<a href="{{ object.docs_url }}" target="_blank" class="btn btn-sm btn-outline-secondary" title="View model documentation">
<i class="mdi mdi-help-circle"></i> Help
</a>
</div>