From 288654722d061591ac834ecf9fb2310280473323 Mon Sep 17 00:00:00 2001 From: "Jose M. Guisado Gomez" Date: Wed, 30 Jun 2021 08:32:51 +0000 Subject: Add scopes_tree_collapse macro Being able to collapse the scopes tree allows to fit a bigger scopes tree. A new macro is introduced to generate the HTML code for the scope tree in such a way that each non-leaf level (center, room) are collapsible. macros.scopes_tree_collapse(scopes) As of now, the state of the scope tree is not saved when changing nav sections. --- ogcp/templates/scopes.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ogcp/templates/scopes.html') diff --git a/ogcp/templates/scopes.html b/ogcp/templates/scopes.html index 1d931bb..746acff 100644 --- a/ogcp/templates/scopes.html +++ b/ogcp/templates/scopes.html @@ -12,7 +12,7 @@ {% endblock %} {% block sidebar %} - {{ macros.print_scopes_tree(scopes["scope"]) }} + {{ macros.scopes_tree_collapse(scopes) }} {% endblock %} {% block commands %} -- cgit v1.2.3-18-g5258