diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-01-24 09:59:27 +0100 |
---|---|---|
committer | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-01-28 08:23:43 +0100 |
commit | 5fbcff64f2d5fabc1b889759b6e9c387ffc22544 (patch) | |
tree | 2c2a2e96592187b404281aeb60ddcb5736b61287 /ogcp/templates | |
parent | 31b1e920772ce6dd56f3f56b5a882c2f71333c13 (diff) |
Remove dead code in macro.html
scopes_tree_collapse() replaces this dead code.
Diffstat (limited to 'ogcp/templates')
-rw-r--r-- | ogcp/templates/macros.html | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/ogcp/templates/macros.html b/ogcp/templates/macros.html index f7ebf2f..4ae5982 100644 --- a/ogcp/templates/macros.html +++ b/ogcp/templates/macros.html @@ -1,23 +1,3 @@ -{% macro print_scopes_tree(scopes) -%} - - <ul class="list-group list-group-flush"> - {% for scope in scopes %} - <li class="list-group-item state--{{ scope['state'] | lower }}"> - <input class="form-check-input" type="checkbox" form="scopesForm" - value="{{ " ".join(scope["ip"]) }}" - {% if scope.get("selected", False) %}checked{% endif %} - name="{{ scope["name"] }}_{{ scope["id"] }}"> - {{ scope["name"] }} - {% if "state" in scope %} - -- STATE: {{ scope["state"] }} - {% endif %} - {{ print_scopes_tree(scope["scope"]) }} - </li> - {% endfor %} - </ul> - -{% endmacro %} - {% macro scopes_tree_collapse(scopes) -%} <ul id="scopes" class="nav flex-column nav-pills"> |