From 4e65ec2c2b7af38b634e97c83c1f4e47a7fb6215 Mon Sep 17 00:00:00 2001 From: alice Date: Sun, 30 Aug 2020 01:32:40 +0200 Subject: [PATCH] update admin templates --- templates/admin/index.html | 53 ++++++----------------------- templates/lambdainst/admin_ref.html | 2 +- 2 files changed, 11 insertions(+), 44 deletions(-) diff --git a/templates/admin/index.html b/templates/admin/index.html index 7da2824..e8df2cf 100644 --- a/templates/admin/index.html +++ b/templates/admin/index.html @@ -1,7 +1,7 @@ {% extends "admin/base_site.html" %} {% load i18n static %} -{% block extrastyle %}{{ block.super }}{% endblock %} +{% block extrastyle %}{{ block.super }}{% endblock %} {% block coltype %}colMS{% endblock %} @@ -9,44 +9,10 @@ {% block breadcrumbs %}{% endblock %} +{% block nav-sidebar %}{% endblock %} + {% block content %}
- -{% if app_list %} - {% for app in app_list %} -
- - - {% for model in app.models %} - - {% if model.admin_url %} - - {% else %} - - {% endif %} - - {% if model.add_url %} - - {% else %} - - {% endif %} - - {% if model.admin_url %} - - {% else %} - - {% endif %} - - {% endfor %} -
- {{ app.name }} -
{{ model.name }}{{ model.name }}{% trans 'Add' %} {% trans 'Change' %} 
-
- {% endfor %} -{% else %} -

{% trans "You don't have permission to edit anything." %}

-{% endif %} -
@@ -62,18 +28,19 @@
+ {% include "admin/app_list.html" with app_list=app_list show_changelinks=True %}
{% endblock %} {% block sidebar %}