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

#6732: Fix rendering of stats on home page when not authenticated

This commit is contained in:
checktheroads
2021-05-07 11:55:46 -07:00
parent 6e9c81eddf
commit 03a1014714
2 changed files with 14 additions and 7 deletions

View File

@@ -13,7 +13,7 @@
<div class="card-body">
<div class="list-group list-group-flush">
{% for item in section.items %}
<a href="{% url item.url %}" class="list-group-item list-group-item-action">
<a href="{% url item.url %}" class="list-group-item list-group-item-action{% if item.disabled %} disabled{% endif %}">
<div class="d-flex w-100 justify-content-between align-items-center">
<div class="d-flex flex-column align-items-start">
<h6 class="mb-1">{{ item.label }}</h6>
@@ -21,7 +21,13 @@
<small class="mb-1 text-muted">{{ item.description }}</small>
{% endif %}
</div>
<span class="badge bg-secondary rounded-pill">{{ item.count }}</span>
<span class="badge bg-secondary rounded-pill">
{% if item.count == None %}
<i class="mdi mdi-lock"></i>
{% else %}
{{ item.count }}
{% endif %}
</span>
</div>
</a>
{% endfor %}