Update concept_macros.pt
cast level to int
This commit is contained in:
parent
c58126b93b
commit
8be18fa43e
1 changed files with 2 additions and 2 deletions
|
|
@ -52,7 +52,7 @@
|
||||||
</tal:actions>
|
</tal:actions>
|
||||||
<h1 tal:define="tabview item/tabview|nothing"
|
<h1 tal:define="tabview item/tabview|nothing"
|
||||||
tal:attributes="ondblclick item/openEditWindow">
|
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:attributes="href string:${view/requestUrl}${item/urlParamString}"
|
||||||
tal:content="item/title">Title</a>
|
tal:content="item/title">Title</a>
|
||||||
<a title="Show tabular view"
|
<a title="Show tabular view"
|
||||||
|
|
@ -340,7 +340,7 @@
|
||||||
<metal:listing define-macro="list_nested">
|
<metal:listing define-macro="list_nested">
|
||||||
<div style="margin-left: 20px"
|
<div style="margin-left: 20px"
|
||||||
tal:define="item nocall:related;
|
tal:define="item nocall:related;
|
||||||
level python:level + 1">
|
level python: int(level) + 1">
|
||||||
<tal:children condition="children">
|
<tal:children condition="children">
|
||||||
<metal:list use-macro="item/template/macros/conceptchildren" />
|
<metal:list use-macro="item/template/macros/conceptchildren" />
|
||||||
</tal:children>
|
</tal:children>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue