start to unify and test listeners

This commit is contained in:
Torsten Ruger
2015-08-18 23:08:12 +02:00
parent f942ed719a
commit ef321dab26
3 changed files with 17 additions and 25 deletions

View File

@ -7,29 +7,8 @@
<div class="register-view">
<ul id="nav">
<a href="#">{{reg.name}} : {{reg.value}}</a>
{{ reg.fields.each_with_index do |attribute, index| }}
<li class="field">
<a href="#">
{{index}}{{marker(attribute)}}
{{attribute.object_id}}
</a>
{{ if(is_object?(attribute.object_id)) }}
<ul>
{{content(attribute.object_id).each do |con| }}
<li>
<a href="#">{{con[0]}}</a>
{{ if is_object?( con[1])}}
<ul>
{{content(con[1]).each do |con2| }}
<:objects object={{con2[0]}} id={{con2[1]}} level={{3}} />
{{end}}
</ul>
{{ end }}
</li>
{{end}}
</ul>
{{ end }}
</li>
{{ reg.fields.each do |attribute| }}
<:objects object={{attribute}} id={{attribute.object_id}} />
{{end}}
</ul>
</div>