2015-07-22 15:22:54 +02:00
|
|
|
class ClassView
|
|
|
|
include React::Component
|
|
|
|
|
2015-07-23 12:15:26 +02:00
|
|
|
required_param :classes, type: {}
|
2015-07-22 15:22:54 +02:00
|
|
|
|
|
|
|
def render
|
2015-07-27 20:29:41 +02:00
|
|
|
div.classes do
|
|
|
|
h4 { "Classes" }
|
2015-07-22 22:08:36 +02:00
|
|
|
classes.each do |name , clas|
|
2015-07-27 20:29:41 +02:00
|
|
|
div.one_class do
|
2015-07-23 13:59:15 +02:00
|
|
|
clas.name
|
2015-07-22 21:05:31 +02:00
|
|
|
end
|
2015-07-22 15:22:54 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|