From 0926f1f85f5a2c4d459239f1f1662e500009c00c Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Sun, 9 Aug 2015 12:15:22 +0300 Subject: [PATCH] more info --- app/main/models/register_model.rb | 1 + app/main/views/blocks/index.html | 6 ++++-- app/main/views/sources/index.html | 12 +++++++----- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/app/main/models/register_model.rb b/app/main/models/register_model.rb index 12c3701..fea8607 100644 --- a/app/main/models/register_model.rb +++ b/app/main/models/register_model.rb @@ -25,6 +25,7 @@ class RegisterModel < Volt::Model clazz = object.class.name.split("::").last #puts "found #{clazz}" self.fields << "#{clazz}:#{object.internal_object_length}" + self.fields << object.get_layout object.get_instance_variables.each do |variable| f = object.get_instance_variable(variable) self.fields << f diff --git a/app/main/views/blocks/index.html b/app/main/views/blocks/index.html index 0e692c5..44d05e2 100644 --- a/app/main/views/blocks/index.html +++ b/app/main/views/blocks/index.html @@ -8,8 +8,10 @@

Block: {{page._block_name}}

{{ page._blocks.each do |b| }} -
- {{b._name}} +
+ + {{b._name}} +
{{ end }}
diff --git a/app/main/views/sources/index.html b/app/main/views/sources/index.html index a270ec7..ec7c2e9 100644 --- a/app/main/views/sources/index.html +++ b/app/main/views/sources/index.html @@ -4,9 +4,11 @@ <:Body>

Virtual Machine Instruction

- {{page._sources.each do |source| }} -
- {{source._name}} -
- {{end}} + {{page._sources.each do |source| }} +
+ + {{source._name}} + +
+ {{end}}