mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-14 09:51:22 -06:00
Closes #17918: Fix styling of "tagged items" list under tag view
This commit is contained in:
parent
13dc6854c2
commit
a33fb2a0a9
@ -55,22 +55,23 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h2 class="card-header">{% trans "Tagged Item Types" %}</h2>
|
<h2 class="card-header">{% trans "Tagged Item Types" %}</h2>
|
||||||
<table class="table table-hover attr-table">
|
<ul class="list-group list-group-flush" role="presentation">
|
||||||
{% for object_type in object_types %}
|
{% for object_type in object_types %}
|
||||||
<tr>
|
|
||||||
<td>{{ object_type.content_type.name|bettertitle }}</td>
|
|
||||||
<td>
|
|
||||||
{% with viewname=object_type.content_type.model_class|validated_viewname:"list" %}
|
{% with viewname=object_type.content_type.model_class|validated_viewname:"list" %}
|
||||||
{% if viewname %}
|
{% if viewname %}
|
||||||
<a href="{% url viewname %}?tag={{ object.slug }}">{{ object_type.item_count }}</a>
|
<a href="{% url viewname %}?tag={{ object.slug }}" class="list-group-item list-group-item-action d-flex justify-content-between">
|
||||||
|
{{ object_type.content_type.name|bettertitle }}
|
||||||
|
<span class="badge text-bg-primary rounded-pill">{{ object_type.item_count }}</span>
|
||||||
|
</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ object_type.item_count }}
|
<li class="list-group-item list-group-item-action d-flex justify-content-between">
|
||||||
|
{{ object_type.content_type.name|bettertitle }}
|
||||||
|
<span class="badge text-bg-primary rounded-pill">{{ object_type.item_count }}</span>
|
||||||
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
{% plugin_right_page object %}
|
{% plugin_right_page object %}
|
||||||
</div>
|
</div>
|
||||||
@ -79,7 +80,7 @@
|
|||||||
<div class="col col-md-12">
|
<div class="col col-md-12">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h2 class="card-header">{% trans "Tagged Objects" %}</h2>
|
<h2 class="card-header">{% trans "Tagged Objects" %}</h2>
|
||||||
<div class="card-body table-responsive">
|
<div class="table-responsive">
|
||||||
{% render_table taggeditem_table 'inc/table.html' %}
|
{% render_table taggeditem_table 'inc/table.html' %}
|
||||||
{% include 'inc/paginator.html' with paginator=taggeditem_table.paginator page=taggeditem_table.page %}
|
{% include 'inc/paginator.html' with paginator=taggeditem_table.paginator page=taggeditem_table.page %}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user