From 01043ba8a8e07423eb94c70b734442090578062e Mon Sep 17 00:00:00 2001 From: Real-Gecko Date: Thu, 15 Oct 2020 20:18:45 +0600 Subject: [PATCH] Templates cleanup --- accounts/templates/account.html | 6 +- accounts/templates/accounts-list.html | 175 ------------------ accounts/templates/accounts.html | 151 --------------- accounts/templates/create_user_block.html | 38 ---- accounts/templates/profile.html | 2 +- admin/__init__.py | 1 + admin/templates/admin/common/list.html | 28 --- admin/templates/admin/group_list.html | 1 - admin/templates/admin/logs.html | 85 ++++----- admin/templates/admin/user_form.html | 13 +- admin/templates/admin/user_list.html | 27 +-- appsettings/templates/appsettings.html | 140 +++++++------- appsettings/views.py | 27 ++- computes/forms.py | 5 +- computes/templates/computes/instances.html | 6 +- computes/templates/computes/list.html | 1 - computes/templates/overview.html | 26 +-- instances/templates/allinstances.html | 6 +- instances/templates/create_instance_w1.html | 18 +- instances/templates/create_instance_w2.html | 19 +- instances/templates/instance.html | 12 +- .../instances/destroy_instance_form.html | 4 +- interfaces/templates/interface.html | 9 +- interfaces/templates/interfaces.html | 12 +- interfaces/views.py | 9 +- logs/templates/paging.html | 12 -- networks/templates/network.html | 10 +- networks/templates/networks.html | 18 +- networks/views.py | 36 ++-- nwfilters/templates/nwfilter.html | 13 +- nwfilters/templates/nwfilters.html | 27 ++- nwfilters/views.py | 28 ++- secrets/templates/secrets.html | 13 +- secrets/views.py | 27 ++- storages/templates/storage.html | 15 +- storages/templates/storages.html | 19 +- storages/views.py | 17 +- templates/base.html | 9 +- templates/common/confirm_delete.html | 2 +- templates/common/form.html | 2 +- templates/errors_block.html | 17 -- templates/messages_block.html | 17 -- 42 files changed, 307 insertions(+), 796 deletions(-) delete mode 100644 accounts/templates/accounts-list.html delete mode 100644 accounts/templates/accounts.html delete mode 100644 accounts/templates/create_user_block.html delete mode 100644 admin/templates/admin/common/list.html delete mode 100644 logs/templates/paging.html delete mode 100644 templates/errors_block.html delete mode 100644 templates/messages_block.html diff --git a/accounts/templates/account.html b/accounts/templates/account.html index 54e3ad9..3775a63 100644 --- a/accounts/templates/account.html +++ b/accounts/templates/account.html @@ -5,13 +5,13 @@ {% load qr_code %} {% block title %}{% trans "User Profile" %} - {{ user }}{% endblock %} -{% block page_header %}{% trans "User Profile" %}: {{ user }}{% endblock page_header %} +{% block page_heading %}{% trans "User Profile" %}: {{ user }}{% endblock page_heading %} -{% block page_header_extra %} +{% block page_heading_extra %} {% icon 'plus' %} -{% endblock page_header_extra %} +{% endblock page_heading_extra %} {% block content %}