Sha256: 68b44386f7268b566dcade51280dc01b1eca87a4101e0c7d85c449863dccffa9

Contents?: true

Size: 456 Bytes

Versions: 12

Compression:

Stored size: 456 Bytes

Contents

Coprl::Presenters.define(:code) do
  if context[:file]
    grid do
      column 12 do
        body ''
        expansion_panel 'Show Source' do
          content do
            form do
              source = File.read(context[:file])
              text_area full_width: true, rows: source.split("\n").size do
                value source
                label 'Source'
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
coprl-3.0.0.beta.12 app/demo/shared/code.pom
coprl-3.0.0.beta.11 app/demo/shared/code.pom
coprl-3.0.0.beta.10 app/demo/shared/code.pom
coprl-3.0.0.beta.9 app/demo/shared/code.pom
coprl-3.0.0.beta.8 app/demo/shared/code.pom
coprl-3.0.0.beta.7 app/demo/shared/code.pom
coprl-3.0.0.beta.6 app/demo/shared/code.pom
coprl-3.0.0.beta.5 app/demo/shared/code.pom
coprl-3.0.0.beta.4 app/demo/shared/code.pom
coprl-3.0.0.beta.3 app/demo/shared/code.pom
coprl-3.0.0.beta.2 app/demo/shared/code.pom
coprl-3.0.0.beta.1 app/demo/shared/code.pom