try to get object recursion going

This commit is contained in:
Torsten Ruger
2015-08-16 10:01:12 +03:00
parent a779daf205
commit f942ed719a
4 changed files with 51 additions and 15 deletions

View File

@ -21,7 +21,7 @@
{{ if is_object?( con[1])}}
<ul>
{{content(con[1]).each do |con2| }}
<:object object={{con2[0]}} id={{con2[1]}} level={{3}} />
<:objects object={{con2[0]}} id={{con2[1]}} level={{3}} />
{{end}}
</ul>
{{ end }}
@ -35,17 +35,3 @@
</div>
{{end}}
</div>
<:Object>
<li>
<a href="#">{{attrs.object}}</a>
{{ if(is_object?(attrs.id) and (attrs.level < 4)) }}
<ul>
{{content(attrs.id).each do |con3| }}
<li>
<a href="#">{{con3[0]}}</a>
</li>
{{end}}
</ul>
{{ end }}
</li>