move to haml style class names

This commit is contained in:
Torsten Ruger 2015-07-23 13:15:26 +03:00
parent 398d364c02
commit f4dfbb5845
2 changed files with 16 additions and 12 deletions

View File

@ -1,12 +1,12 @@
class ClassView class ClassView
include React::Component include React::Component
required_param :classes, type: Hash required_param :classes, type: {}
def render def render
div :class => "row" do div.row do
classes.each do |name , clas| classes.each do |name , clas|
div :class => "row" do div.row do
clas.name.span clas.name.span
end end
end end

View File

@ -9,6 +9,7 @@ require "class_view"
require "register_view" require "register_view"
require "source_view" require "source_view"
require "block_view" require "block_view"
require "interpreter"
Virtual.machine.boot Virtual.machine.boot
@ -31,26 +32,29 @@ class Debugger
# end # end
# end # end
# end # end
def initialize
@interpreter = Interpreter.new
end
def render def render
div :class => "container" do div.container do
div :class => :row do div.row do
div :class => "col-md-1" do div.col_md_1 do
ClassView classes: Virtual.machine.space.classes ClassView classes: Virtual.machine.space.classes
end end
div :class => "col-md-11" do div.col_md_11 do
div :class => "row" do div.row do
div :class => "col-md-4" do div.col_md_4 do
"Future one" "Future one"
end end
div :class => "col-md-4" do div.col_md_4 do
"Future two" "Future two"
end end
div :class => "col-md-4" do div.col_md_4 do
BlockView block: [ "block 1" , "block 2"] BlockView block: [ "block 1" , "block 2"]
end end
end end
RegisterView registers: ["r1" , "r2"] RegisterView registers: @interpreter.registers
end end
end end
end end