diff --git a/ap/core/context_processors.py b/ap/core/context_processors.py index 8e0642c7..fb06d73f 100644 --- a/ap/core/context_processors.py +++ b/ap/core/context_processors.py @@ -18,6 +18,11 @@ def nav_items(request): "url": reverse("database_access:list"), "active": request.get_full_path() == reverse("database_access:list"), }, + { + "name": "Admin", + "url": reverse("admin:index"), + "hide": not request.user.is_staff, + }, ] } diff --git a/chart/Chart.yaml b/chart/Chart.yaml index e45b1193..9d3fc034 100644 --- a/chart/Chart.yaml +++ b/chart/Chart.yaml @@ -3,8 +3,8 @@ apiVersion: v2 name: analytical-platform-ui description: Analytical Platform UI type: application -version: 0.2.2 -appVersion: 0.2.2 +version: 0.2.3 +appVersion: 0.2.3 icon: https://upload.wikimedia.org/wikipedia/en/thumb/4/4a/Ministry_of_Justice_logo_%28United_Kingdom%29.svg/611px-Ministry_of_Justice_logo_%28United_Kingdom%29.svg.png maintainers: - name: moj-data-platform-robot diff --git a/templates/includes/nav_item.html b/templates/includes/nav_item.html index f3060464..4a777570 100644 --- a/templates/includes/nav_item.html +++ b/templates/includes/nav_item.html @@ -1,3 +1,5 @@