aggregate_list.html 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. {% extends '_base.html' %}
  2. {% load humanize %}
  3. {% load helpers %}
  4. {% block content %}
  5. <div class="pull-right">
  6. {% if perms.ipam.add_aggregate %}
  7. <a href="{% url 'ipam:aggregate_add' %}" class="btn btn-primary">
  8. <span class="fa fa-plus" aria-hidden="true"></span>
  9. Add an aggregate
  10. </a>
  11. <a href="{% url 'ipam:aggregate_import' %}" class="btn btn-info">
  12. <span class="fa fa-download" aria-hidden="true"></span>
  13. Import aggregates
  14. </a>
  15. {% endif %}
  16. {% include 'inc/export_button.html' with obj_type='aggregates' %}
  17. </div>
  18. <h1>{% block title %}Aggregates{% endblock %}</h1>
  19. <div class="row">
  20. <div class="col-md-9">
  21. {% include 'utilities/obj_table.html' with bulk_edit_url='ipam:aggregate_bulk_edit' bulk_delete_url='ipam:aggregate_bulk_delete' %}
  22. </div>
  23. <div class="col-md-3">
  24. {% include 'inc/search_panel.html' %}
  25. <div class="panel panel-default">
  26. <div class="panel-heading">
  27. <strong><i class="fa fa-bar-chart"></i> Statistics</strong>
  28. </div>
  29. <ul class="list-group">
  30. <li class="list-group-item">Total IPv4 IPs <span class="badge">{{ ipv4_total|intcomma }}</span></li>
  31. <li class="list-group-item">Total IPv6 /64s <span class="badge">{{ ipv6_total|intcomma }}</span></li>
  32. </ul>
  33. </div>
  34. </div>
  35. </div>
  36. {% endblock %}