From 1485e4eb903c83324d848cc5713525f09b4c1936 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Mon, 5 Apr 2021 23:22:05 -0400 Subject: [PATCH] use older docker compose version for more features --- archivebox/templates/admin/base.html | 26 +---------------------- archivebox/templates/core/base.html | 17 ++------------- archivebox/templates/core/navigation.html | 22 +++++++++++++++++++ docker-compose.yml | 3 +-- 4 files changed, 26 insertions(+), 42 deletions(-) create mode 100644 archivebox/templates/core/navigation.html diff --git a/archivebox/templates/admin/base.html b/archivebox/templates/admin/base.html index f2552736..8cdd0f80 100644 --- a/archivebox/templates/admin/base.html +++ b/archivebox/templates/admin/base.html @@ -89,31 +89,7 @@ {% block usertools %} {% if has_permission %} -
- Add ➕     - Snapshots | - Outputs | - Tags     - Docs | - Admin -     - {% block welcome-msg %} - {% trans 'User' %} - {% firstof user.get_short_name user.get_username %}     - {% endblock %} - {% block userlinks %} - {% if user.is_active and user.is_staff %} - {% url 'django-admindocs-docroot' as docsroot %} - {% if docsroot %} - {% trans 'Documentation' %} / - {% endif %} - {% endif %} - {% if user.has_usable_password %} - Account / - {% endif %} - {% trans 'Log out' %} - {% endblock %} -
+ {% include 'navigation.html' %} {% endif %} {% endblock %} {% block nav-global %}{% endblock %} diff --git a/archivebox/templates/core/base.html b/archivebox/templates/core/base.html index e664c22f..fbecd84b 100644 --- a/archivebox/templates/core/base.html +++ b/archivebox/templates/core/base.html @@ -44,21 +44,8 @@ -
- ➕  Add  /  - Snapshots  /  - Admin  /  - Docs - {% if user.is_authenticated %} -     - User - {% firstof user.get_short_name user.get_username %}     - {% if user.has_usable_password %} - Change password / - {% endif %} - Log out - {% endif %} -
+ {% include 'navigation.html' %} +
{% block body %} diff --git a/archivebox/templates/core/navigation.html b/archivebox/templates/core/navigation.html new file mode 100644 index 00000000..27330f1c --- /dev/null +++ b/archivebox/templates/core/navigation.html @@ -0,0 +1,22 @@ +{% load i18n static %} + +
+ Add ➕     + Snapshots | + Tags | + Log     + Docs | + Public | + Admin +     + {% block welcome-msg %} + {% trans 'User' %} + {% firstof user.get_short_name user.get_username %}     + {% endblock %} + {% block userlinks %} + {% if user.has_usable_password %} + Account / + {% endif %} + {% trans 'Log out' %} + {% endblock %} +
diff --git a/docker-compose.yml b/docker-compose.yml index 6c374867..d70ca4a5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,7 +7,7 @@ # Documentation: # https://github.com/ArchiveBox/ArchiveBox/wiki/Docker#docker-compose -version: '3.7' +version: '2.4' services: archivebox: @@ -87,4 +87,3 @@ services: # volumes: # ./data:/archivebox # ./data/wayback:/webarchive -