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,18 +46,20 @@ ...@@ -46,18 +46,20 @@
{% for default_top in protocol.protocoltype.default_tops %} {% for default_top in protocol.protocoltype.default_tops %}
{% if default_top.is_at_end() %} {% if default_top.is_at_end() %}
{% set localtop = default_top.get_localtop(protocol) %} {% set localtop = default_top.get_localtop(protocol) %}
<li class="{{localtop.get_css_classes()|join(" ")}}" {% if localtop.is_expandable() %} id="localtop-{{localtop.id}}" title="{{localtop.description}}"{% endif %}> {% if localtop is not none %}
{{default_top.name}} <li class="{{localtop.get_css_classes()|join(" ")}}" {% if localtop.is_expandable() %} id="localtop-{{localtop.id}}" title="{{localtop.description}}"{% endif %}>
{% if not protocol.is_done() and has_modify_right %} {{default_top.name}}
<a href="{{url_for('edit_localtop', localtop_id=localtop.id)}}">Ändern</a> {% if not protocol.is_done() and has_modify_right %}
{% endif %} <a href="{{url_for('edit_localtop', localtop_id=localtop.id)}}">Ändern</a>
{% if has_private_view_right and localtop.description is not none and localtop.description|length > 0 %} {% endif %}
<span class="glyphicon glyphicon-info-sign"></span> {% if has_private_view_right and localtop.description is not none and localtop.description|length > 0 %}
<pre id="localtop-{{localtop.id}}-description" class="expansion-text"> <span class="glyphicon glyphicon-info-sign"></span>
{{-localtop.description-}} <pre id="localtop-{{localtop.id}}-description" class="expansion-text">
</pre> {{-localtop.description-}}
{% endif %} </pre>
</li> {% endif %}
</li>
{% endif %}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
......
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