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

57 lines
1.8 KiB
HTML
Raw Normal View History

2021-04-26 00:31:51 -07:00
{% extends 'layout.html' %}
{% load helpers %}
2021-04-30 15:55:37 -07:00
2021-04-26 00:31:51 -07:00
{% block title_container %}{% endblock %}
{% block title %}Home{% endblock %}
2021-04-30 15:55:37 -07:00
2021-04-26 00:31:51 -07:00
{% block content %}
2021-04-25 20:10:41 -07:00
<div class="stats-container">
2021-04-30 15:55:37 -07:00
<div class="row masonry">
2021-04-25 20:10:41 -07:00
{% for section in stats %}
2021-04-30 15:55:37 -07:00
<div class="col col-sm-12 col-md-4 my-2 masonry-item">
2021-04-25 20:10:41 -07:00
<div class="card">
<h5 class="card-header text-primary">{{ section.label }}</h5>
<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{% if item.disabled %} disabled{% endif %}">
2021-04-30 15:55:37 -07:00
<div class="d-flex w-100 justify-content-between align-items-center">
2021-04-25 20:10:41 -07:00
<div class="d-flex flex-column align-items-start">
<h6 class="mb-1">{{ item.label }}</h6>
{% if item.description %}
<small class="mb-1 text-muted">{{ item.description }}</small>
{% endif %}
</div>
<span class="badge stat-badge rounded-pill">
{% if item.count == None %}
<i class="mdi mdi-lock"></i>
{% else %}
{{ item.count }}
{% endif %}
</span>
2021-04-25 20:10:41 -07:00
</div>
</a>
{% endfor %}
</div>
<div class="display-4 font-weight-normal text-primary">
{{ item.count }}
</div>
</div>
</div>
</div>
2021-04-25 20:10:41 -07:00
{% endfor %}
</div>
2021-04-25 20:10:41 -07:00
</div>
<div class="row my-4 flex-grow-1 changelog-container">
<div class="col">
<div class="card">
<h4 class="card-header">Changelog</h4>
<div class="card-body">
{% include 'changelog.html' %}
</div>
2016-03-01 11:23:03 -05:00
</div>
</div>
2016-03-01 11:23:03 -05:00
</div>
{% endblock %}