Commit 2e863a10 authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Fix other place with get_css_classes on new default tops without localtops

/close #195
parent 9a3264e9
......@@ -46,6 +46,7 @@
{% for default_top in protocol.protocoltype.default_tops %}
{% if default_top.is_at_end() %}
{% 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 %}>
{{default_top.name}}
{% if not protocol.is_done() and has_modify_right %}
......@@ -59,6 +60,7 @@
{% endif %}
</li>
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
</ul>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment