Update concept_macros.pt

cast level to int
This commit is contained in:
Hannes Plattner 2025-11-13 11:27:21 +01:00 committed by GitHub
parent c58126b93b
commit 8be18fa43e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -52,7 +52,7 @@
</tal:actions>
<h1 tal:define="tabview item/tabview|nothing"
tal:attributes="ondblclick item/openEditWindow">
<a tal:omit-tag="python: level > 1"
<a tal:omit-tag="python: int(level) > 1"
tal:attributes="href string:${view/requestUrl}${item/urlParamString}"
tal:content="item/title">Title</a>
<a title="Show tabular view"
@ -340,7 +340,7 @@
<metal:listing define-macro="list_nested">
<div style="margin-left: 20px"
tal:define="item nocall:related;
level python:level + 1">
level python: int(level) + 1">
<tal:children condition="children">
<metal:list use-macro="item/template/macros/conceptchildren" />
</tal:children>