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

Closes #6125: Add locations count to home page

This commit is contained in:
jeremystretch
2021-04-09 09:47:34 -04:00
parent 9e62d1ad8f
commit 6efe54aa88
3 changed files with 14 additions and 2 deletions

View File

@@ -31,7 +31,17 @@
<span class="badge pull-right"><i class="mdi mdi-lock"></i></span>
<h4 class="list-group-item-heading">Sites</h4>
{% endif %}
<p class="list-group-item-text text-muted">Geographic locations</p>
<p class="list-group-item-text text-muted">Discrete points of presence</p>
</div>
<div class="list-group-item">
{% if perms.dcim.view_location %}
<span class="badge pull-right">{{ stats.location_count }}</span>
<h4 class="list-group-item-heading"><a href="{% url 'dcim:location_list' %}">Locations</a></h4>
{% else %}
<span class="badge pull-right"><i class="mdi mdi-lock"></i></span>
<h4 class="list-group-item-heading">Locations</h4>
{% endif %}
<p class="list-group-item-text text-muted">Locations within sites</p>
</div>
<div class="list-group-item">
{% if perms.tenancy.view_tenant %}