Switch from macros to blocks for navigation menus

This affects the user and notifications menus. It happens for two reasons:
- the only argument passed to the macros was current_user, which is always available
- we want to enable overriding and adding items to the menus via extensions

At the moment only the user menu takes advantage of the base template, since the blender-cloud extension makes use of it, while notifications.pug does not need it yet.
This commit is contained in:
2017-12-13 11:08:33 +01:00
parent 20ca3f8ee4
commit a7693aa78d
4 changed files with 90 additions and 142 deletions

View File

@@ -0,0 +1 @@
| {% extends 'menus/user_base.html' %}