Add line for PowerPanel count

This commit is contained in:
mmahacek 2019-06-28 17:03:06 -07:00 committed by GitHub
parent 6c3c6fba62
commit 7a41b02fdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -115,6 +115,16 @@
{% endif %} {% endif %}
<p class="list-group-item-text text-muted">Electrical circuits delivering power from panels</p> <p class="list-group-item-text text-muted">Electrical circuits delivering power from panels</p>
</div> </div>
<div class="list-group-item">
{% if perms.dcim.view_powerpanel %}
<span class="badge pull-right">{{ stats.powerpanel_count }}</span>
<h4 class="list-group-item-heading"><a href="{% url 'dcim:powerpanel_list' %}">Power Panels</a></h4>
{% else %}
<span class="badge pull-right"><i class="fa fa-lock"></i></span>
<h4 class="list-group-item-heading">Power Panels</h4>
{% endif %}
<p class="list-group-item-text text-muted">Electrical panels receiving utility power</p>
</div>
</div> </div>
</div> </div>
<div class="panel panel-default"> <div class="panel panel-default">