Refactor breadcrumbs to respect permissions, refs #1831

This commit is contained in:
Simon Willison 2022-10-13 14:42:52 -07:00
commit 1a5e5f2aa9
13 changed files with 65 additions and 59 deletions

View file

@ -1,4 +1,4 @@
<!DOCTYPE html>
{% import "_crumbs.html" as crumbs with context %}<!DOCTYPE html>
<html>
<head>
<title>{% block title %}{% endblock %}</title>
@ -17,7 +17,7 @@
</head>
<body class="{% block body_class %}{% endblock %}">
<div class="not-footer">
<header><nav>{% block nav %}
<header><nav>{% block nav %}{% block crumbs %}{{ crumbs.nav(request=request) }}{% endblock %}
{% set links = menu_links() %}{% if links or show_logout %}
<details class="nav-menu">
<summary><svg aria-labelledby="nav-menu-svg-title" role="img"