mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-09 01:49:35 -06:00
Closes #19765: Linkify object types under saved filter view (#20458)
Some checks are pending
CI / build (20.x, 3.10) (push) Waiting to run
CI / build (20.x, 3.11) (push) Waiting to run
CI / build (20.x, 3.12) (push) Waiting to run
CodeQL / Analyze (${{ matrix.language }}) (none, actions) (push) Waiting to run
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Waiting to run
CodeQL / Analyze (${{ matrix.language }}) (none, python) (push) Waiting to run
Some checks are pending
CI / build (20.x, 3.10) (push) Waiting to run
CI / build (20.x, 3.11) (push) Waiting to run
CI / build (20.x, 3.12) (push) Waiting to run
CodeQL / Analyze (${{ matrix.language }}) (none, actions) (push) Waiting to run
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Waiting to run
CodeQL / Analyze (${{ matrix.language }}) (none, python) (push) Waiting to run
This commit is contained in:
parent
b0a8b86a93
commit
f31a5551ff
@ -37,20 +37,24 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h2 class="card-header">{% trans "Assigned Models" %}</h2>
|
<h2 class="card-header">{% trans "Assigned Models" %}</h2>
|
||||||
<table class="table table-hover attr-table">
|
<div class="list-group list-group-flush" role="presentation">
|
||||||
{% for object_type in object.object_types.all %}
|
{% for object_type in object.object_types.all %}
|
||||||
<tr>
|
{% with object_type.model_class|validated_viewname:"list" as viewname %}
|
||||||
<td>{{ object_type }}</td>
|
{% if viewname %}
|
||||||
</tr>
|
<a href="{% url viewname %}?{{ object.url_params }}" class="list-group-item list-group-item-action">{{ object_type }}</a>
|
||||||
|
{% else %}
|
||||||
|
<div class="list-group-item list-group-item-action">{{ object_type }}</div>
|
||||||
|
{% endif %}
|
||||||
|
{% endwith %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% plugin_left_page object %}
|
{% plugin_left_page object %}
|
||||||
</div>
|
</div>
|
||||||
<div class="col col-12 col-md-7">
|
<div class="col col-12 col-md-7">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h2 class="card-header">{% trans "Parameters" %}</h2>
|
<h2 class="card-header">{% trans "Parameters" %}</h2>
|
||||||
<div class="card-body">
|
<div class="card-body p-0">
|
||||||
<pre>{{ object.parameters|json }}</pre>
|
<pre>{{ object.parameters|json }}</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user