Sha256: 41cef1549e55869b5e0cd40691caec42e55935bb3490dda719b889e31b497b23

Contents?: true

Size: 1.51 KB

Versions: 21

Compression:

Stored size: 1.51 KB

Contents

# HTML writer
# security constraint

# History:
#  Stan Smith 2017-03-31 refactored for mdTranslator 2.0
# 	Stan Smith 2015-03-25 original script

module ADIWG
   module Mdtranslator
      module Writers
         module Html

            class Html_SecurityConstraint

               def initialize(html)
                  @html = html
               end

               def writeHtml(hSecCon)

                  # security constraint - classification code {classification}
                  @html.em('Classification: ')
                  @html.text!(hSecCon[:classCode])
                  @html.br


                  # security constraint - classification system
                  @html.em('Classification System: ')
                  @html.text!(hSecCon[:classSystem])
                  @html.br

                  # security constraint - user note
                  unless hSecCon[:userNote].nil?
                     @html.em('User Note:')
                     @html.section(:class => 'block') do
                        @html.text!(hSecCon[:userNote])
                     end
                  end

                  # security constraint - handling instructions
                  unless hSecCon[:handling].nil?
                     @html.em('handling Instructions:')
                     @html.section(:class => 'block') do
                        @html.text!(hSecCon[:handling])
                     end
                  end

               end # writeHtml
            end # Html_SecurityConstraint

         end
      end
   end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
adiwg-mdtranslator-2.3.4 lib/adiwg/mdtranslator/writers/html/sections/html_securityConstraint.rb
adiwg-mdtranslator-2.3.3 lib/adiwg/mdtranslator/writers/html/sections/html_securityConstraint.rb
adiwg-mdtranslator-2.3.2 lib/adiwg/mdtranslator/writers/html/sections/html_securityConstraint.rb
adiwg-mdtranslator-2.3.1 lib/adiwg/mdtranslator/writers/html/sections/html_securityConstraint.rb
adiwg-mdtranslator-2.3.0 lib/adiwg/mdtranslator/writers/html/sections/html_securityConstraint.rb
adiwg-mdtranslator-2.2.0 lib/adiwg/mdtranslator/writers/html/sections/html_securityConstraint.rb
adiwg-mdtranslator-2.1.2 lib/adiwg/mdtranslator/writers/html/sections/html_securityConstraint.rb
adiwg-mdtranslator-2.1.1 lib/adiwg/mdtranslator/writers/html/sections/html_securityConstraint.rb
adiwg-mdtranslator-2.1.0 lib/adiwg/mdtranslator/writers/html/sections/html_securityConstraint.rb
adiwg-mdtranslator-2.0.0 lib/adiwg/mdtranslator/writers/html/sections/html_securityConstraint.rb
adiwg-mdtranslator-2.0.0rc13 lib/adiwg/mdtranslator/writers/html/sections/html_securityConstraint.rb
adiwg-mdtranslator-2.0.0rc11 lib/adiwg/mdtranslator/writers/html/sections/html_securityConstraint.rb
adiwg-mdtranslator-2.0.0rc10 lib/adiwg/mdtranslator/writers/html/sections/html_securityConstraint.rb
adiwg-mdtranslator-2.0.0rc9 lib/adiwg/mdtranslator/writers/html/sections/html_securityConstraint.rb
adiwg-mdtranslator-2.0.0rc8 lib/adiwg/mdtranslator/writers/html/sections/html_securityConstraint.rb
adiwg-mdtranslator-2.0.0rc7 lib/adiwg/mdtranslator/writers/html/sections/html_securityConstraint.rb
adiwg-mdtranslator-2.0.0rc6 lib/adiwg/mdtranslator/writers/html/sections/html_securityConstraint.rb
adiwg-mdtranslator-2.0.0rc5 lib/adiwg/mdtranslator/writers/html/sections/html_securityConstraint.rb
adiwg-mdtranslator-2.0.0rc4 lib/adiwg/mdtranslator/writers/html/sections/html_securityConstraint.rb
adiwg-mdtranslator-2.0.0rc3 lib/adiwg/mdtranslator/writers/html/sections/html_securityConstraint.rb