lib/adiwg/mdtranslator/writers/html/sections/html_gridRepresentation.rb in adiwg-mdtranslator-2.17.1 vs lib/adiwg/mdtranslator/writers/html/sections/html_gridRepresentation.rb in adiwg-mdtranslator-2.18.0rc1

- old
+ new

@@ -4,10 +4,11 @@ # History: # Stan Smith 2017-03-28 refactored for mdTranslator 2.0 # Stan Smith 2015-07-31 original script require_relative 'html_dimension' +require_relative 'html_scope' module ADIWG module Mdtranslator module Writers module Html @@ -20,9 +21,21 @@ def writeHtml(hGrid) # classes used dimensionClass = Html_Dimension.new(@html) + scopeClass = Html_Scope.new(@html) + + # grid representation - scope + hGrid[:scope].each do |scope| + @html.details do + @html.summary('Scope ', 'class' => 'h5') + @html.section(:class => 'block') do + scopeClass.writeHtml(hGrid[:scope]) + end + end + end + # grid representation - number of dimensions unless hGrid[:numberOfDimensions].nil? @html.em('Number of dimensions: ') @html.text!(hGrid[:numberOfDimensions].to_s)