Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
protokollsystem
proto3
Commits
9a3264e9
Commit
9a3264e9
authored
May 10, 2018
by
Robin Sonnabend
Browse files
Fix get_css_classes on new default tops without localtops
/close
#195
parent
3739044a
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/protocol-tops-include.html
View file @
9a3264e9
...
...
@@ -4,18 +4,20 @@
{% for default_top in protocol.protocoltype.default_tops %}
{% if not default_top.is_at_end() %}
{% 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
%}
>
{{default_top.name}}
{% if not protocol.is_done() and has_modify_right %}
<a
href=
"{{url_for('edit_localtop', localtop_id=localtop.id)}}"
>
Ändern
</a>
{% endif %}
{% if has_private_view_right and localtop.description is not none and localtop.description|length > 0 %}
<span
class=
"glyphicon glyphicon-info-sign"
></span>
<pre
id=
"localtop-{{localtop.id}}-description"
class=
"expansion-text"
>
{{-localtop.description-}}
</pre>
{% endif %}
</li>
{% 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 %}
<a
href=
"{{url_for('edit_localtop', localtop_id=localtop.id)}}"
>
Ändern
</a>
{% endif %}
{% if has_private_view_right and localtop.description is not none and localtop.description|length > 0 %}
<span
class=
"glyphicon glyphicon-info-sign"
></span>
<pre
id=
"localtop-{{localtop.id}}-description"
class=
"expansion-text"
>
{{-localtop.description-}}
</pre>
{% endif %}
</li>
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment