Template cleanup (#6421)

* Clean up & comment base templates

* Clean up login template & form

* Use SVG file for NetBox logo

* Simplify breadcrumbs

* Merge changelog.html into home.html

* Rename title_container block to header

* Move breadcrumbs block to object.html

* Attach names to endblock template tags

* Reorganize root-level templates into base/ and inc/

* Remove obsolete reference to Bootstrap 3.4.1
This commit is contained in:
Jeremy Stretch
2021-05-17 16:27:27 -04:00
committed by GitHub
parent 00b4a82ee8
commit cb7cde2a6b
73 changed files with 426 additions and 468 deletions

View File

@@ -1,4 +1,4 @@
{% extends 'layout.html' %}
{% extends 'base/layout.html' %}
{% load helpers %}
{% load form_helpers %}
@@ -11,7 +11,7 @@
<div class="col col-md-9">
{% for obj_type in results %}
<h3 id="{{ obj_type.name|lower }}">{{ obj_type.name|bettertitle }}</h3>
{% include 'panel_table.html' with table=obj_type.table %}
{% include 'inc/panel_table.html' with table=obj_type.table %}
<a href="{{ obj_type.url }}" class="btn btn-primary float-end my-3">
<i class="mdi mdi-arrow-right-bold" aria-hidden="true"></i>
{% if obj_type.table.page.has_next %}
@@ -65,4 +65,4 @@
</div>
</div>
{% endif %}
{% endblock %}
{% endblock content %}