Skip to content
Snippets Groups Projects
Commit 9a3264e9 authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Fix get_css_classes on new default tops without localtops

/close #195
parent 3739044a
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
{% for default_top in protocol.protocoltype.default_tops %} {% for default_top in protocol.protocoltype.default_tops %}
{% if not default_top.is_at_end() %} {% if not default_top.is_at_end() %}
{% set localtop = default_top.get_localtop(protocol) %} {% set localtop = default_top.get_localtop(protocol) %}
{% if localtop is not none %}
<li class="{{localtop.get_css_classes()|join(" ")}}" {% if localtop.is_expandable() %} id="localtop-{{localtop.id}}" title="{{localtop.description}}"{% endif %}> <li class="{{localtop.get_css_classes()|join(" ")}}" {% if localtop.is_expandable() %} id="localtop-{{localtop.id}}" title="{{localtop.description}}"{% endif %}>
{{default_top.name}} {{default_top.name}}
{% if not protocol.is_done() and has_modify_right %} {% if not protocol.is_done() and has_modify_right %}
...@@ -17,6 +18,7 @@ ...@@ -17,6 +18,7 @@
{% endif %} {% endif %}
</li> </li>
{% endif %} {% endif %}
{% endif %}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% for top in protocol.tops %} {% for top in protocol.tops %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment