mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-21 13:52:30 +02:00
use older docker compose version for more features
This commit is contained in:
@@ -89,31 +89,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{% block usertools %}
|
{% block usertools %}
|
||||||
{% if has_permission %}
|
{% if has_permission %}
|
||||||
<div id="user-tools">
|
{% include 'navigation.html' %}
|
||||||
<a href="{% url 'admin:Add' %}">Add ➕</a>
|
|
||||||
<a href="{% url 'Home' %}">Snapshots</a> |
|
|
||||||
<a href="/admin/core/archiveresult/?o=-1">Outputs</a> |
|
|
||||||
<a href="/admin/core/tag/">Tags</a>
|
|
||||||
<a href="{% url 'Docs' %}">Docs</a> |
|
|
||||||
<a href="/admin/">Admin</a>
|
|
||||||
|
|
||||||
{% block welcome-msg %}
|
|
||||||
{% trans 'User' %}
|
|
||||||
<strong>{% firstof user.get_short_name user.get_username %}</strong>
|
|
||||||
{% endblock %}
|
|
||||||
{% block userlinks %}
|
|
||||||
{% if user.is_active and user.is_staff %}
|
|
||||||
{% url 'django-admindocs-docroot' as docsroot %}
|
|
||||||
{% if docsroot %}
|
|
||||||
<a href="{{ docsroot }}">{% trans 'Documentation' %}</a> /
|
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
|
||||||
{% if user.has_usable_password %}
|
|
||||||
<a href="{% url 'admin:password_change' %}">Account</a> /
|
|
||||||
{% endif %}
|
|
||||||
<a href="{% url 'admin:logout' %}">{% trans 'Log out' %}</a>
|
|
||||||
{% endblock %}
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block nav-global %}{% endblock %}
|
{% block nav-global %}{% endblock %}
|
||||||
|
@@ -44,21 +44,8 @@
|
|||||||
</a>
|
</a>
|
||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<div id="user-tools">
|
{% include 'navigation.html' %}
|
||||||
<a href="/add/">➕ Add</a> /
|
|
||||||
<a href="/">Snapshots</a> /
|
|
||||||
<a href="/admin/">Admin</a> /
|
|
||||||
<a href="https://github.com/ArchiveBox/ArchiveBox/wiki">Docs</a>
|
|
||||||
{% if user.is_authenticated %}
|
|
||||||
|
|
||||||
User
|
|
||||||
<strong>{% firstof user.get_short_name user.get_username %}</strong>
|
|
||||||
{% if user.has_usable_password %}
|
|
||||||
<a href="{% url 'admin:password_change' %}">Change password</a> /
|
|
||||||
{% endif %}
|
|
||||||
<a href="{% url 'admin:logout' %}">Log out</a>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div id="content" class="flex">
|
<div id="content" class="flex">
|
||||||
{% block body %}
|
{% block body %}
|
||||||
|
22
archivebox/templates/core/navigation.html
Normal file
22
archivebox/templates/core/navigation.html
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
{% load i18n static %}
|
||||||
|
|
||||||
|
<div id="user-tools">
|
||||||
|
<a href="{% url 'admin:Add' %}">Add ➕</a>
|
||||||
|
<a href="{% url 'Home' %}">Snapshots</a> |
|
||||||
|
<a href="/admin/core/tag/">Tags</a> |
|
||||||
|
<a href="/admin/core/archiveresult/?o=-1">Log</a>
|
||||||
|
<a href="{% url 'Docs' %}">Docs</a> |
|
||||||
|
<a href="{% url 'public-index' %}">Public</a> |
|
||||||
|
<a href="/admin/">Admin</a>
|
||||||
|
|
||||||
|
{% block welcome-msg %}
|
||||||
|
{% trans 'User' %}
|
||||||
|
<strong>{% firstof user.get_short_name user.get_username %}</strong>
|
||||||
|
{% endblock %}
|
||||||
|
{% block userlinks %}
|
||||||
|
{% if user.has_usable_password %}
|
||||||
|
<a href="{% url 'admin:password_change' %}">Account</a> /
|
||||||
|
{% endif %}
|
||||||
|
<a href="{% url 'admin:logout' %}">{% trans 'Log out' %}</a>
|
||||||
|
{% endblock %}
|
||||||
|
</div>
|
@@ -7,7 +7,7 @@
|
|||||||
# Documentation:
|
# Documentation:
|
||||||
# https://github.com/ArchiveBox/ArchiveBox/wiki/Docker#docker-compose
|
# https://github.com/ArchiveBox/ArchiveBox/wiki/Docker#docker-compose
|
||||||
|
|
||||||
version: '3.7'
|
version: '2.4'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
archivebox:
|
archivebox:
|
||||||
@@ -87,4 +87,3 @@ services:
|
|||||||
# volumes:
|
# volumes:
|
||||||
# ./data:/archivebox
|
# ./data:/archivebox
|
||||||
# ./data/wayback:/webarchive
|
# ./data/wayback:/webarchive
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user