From 37ae1bc5a218d0901431f6ab319f766b105c0773 Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Thu, 13 Jun 2024 12:29:21 +0200 Subject: ogcp: add disclosure widget to sidebar Add cache buster to soleta.css in base.html to have control over cache expirity. Bump soleta.css version to ensure browser does not used older (cached) version. Add CSS rules to show a disclosure widget in the sidebar. Show center checkboxes as disabled in the commands view sidebar for visual consistency. Add class "collapsed" to the proper HTML components to keep a proper state on page reload. --- ogcp/templates/base.html | 2 +- ogcp/templates/macros.html | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'ogcp/templates') diff --git a/ogcp/templates/base.html b/ogcp/templates/base.html index 3ac4f5d..30dc3bb 100644 --- a/ogcp/templates/base.html +++ b/ogcp/templates/base.html @@ -10,7 +10,7 @@ - + {% endblock %} diff --git a/ogcp/templates/macros.html b/ogcp/templates/macros.html index c6cd15e..4047e87 100644 --- a/ogcp/templates/macros.html +++ b/ogcp/templates/macros.html @@ -36,13 +36,12 @@ {% if scope.get("selected", False) %}checked{% endif %} name="scope-server" hidden/> {% elif scope["type"] == "center" %} - {% if selection_mode != "commands" %} - {% endif %} {% elif scope["type"] == "room" %} {% set parent_room = scope.name + "-" + scope.id|string %}