%h2 
  #{table.name}
.container
  .row
    .col-md-6
      %h4 
        Fields
      %table.table.table-condensed
        %thead
          %tr
            -header.each do |header|
              %th
                =header[0]
        %tbody
          -table.columns.each do |defn|
            %tr
              -header.each do |name, prop|
                %td
                  .table-data
                    =prop[:value].call(defn)
    .col-md-6
      %h4 
        Indexes
      -if table.indexes.nil? || table.indexes.length < 1
        %h5
          No Indexes
      -else
        %table.table.table-condensed
          %thead
            %tr
              %th
                Index Name
              -table.indexes.first[1].each do |k,v|
                %th
                  =k
          %tbody
            -table.indexes.each do |row|
              %tr
                %td
                  =row[0]
                -row[1].each do |k,v|
                  %td
                    =v
  .row
    .col-md-12
      %h4 
        Sample Data
      -if table.data.nil? || table.data.length < 1
        %h5
          No Data in table
      -else
     :q
        %table.table.table-condensed
          %thead
            %tr
              -table.data(5).first.each do |k,v|
                %th
                  =k
          %tbody
            -table.data(5).each do |row|
              %tr
                -row.each do |k,v|
                  %td
                    =v
         

%h2 
  #{table.name}
.container
  .row
    .col-md-6
      %h4 
        Fields
      %table.table.table-condensed
        %thead
          %tr
            -header.each do |header|
              %th
                =header[0]
        %tbody
          -table.columns.each do |defn|
            %tr
              -header.each do |name, prop|
                %td
                  .table-data
                    =prop[:value].call(defn)
    .col-md-6
      %h4 
        Indexes
      -if table.indexes.nil? || table.indexes.length < 1
        %h5
          No Indexes
      -else
        %table.table.table-condensed
          %thead
            %tr
              %th
                Index Name
              -table.indexes.first[1].each do |k,v|
                %th
                  =k
          %tbody
            -table.indexes.each do |row|
              %tr
                %td
                  =row[0]
                -row[1].each do |k,v|
                  %td
                    =v
  .row
    .col-md-12
      %h4 
        Sample Data
      -unless table.data.nil? || table.data.length < 1
        %table.table.table-condensed
          %thead
            %tr
              -table.data(5).first.each do |k,v|
                %th
                  =k
          %tbody
            -table.data(5).each do |row|
              %tr
                -row.each do |k,v|
                  %td
                    =v
         

Revert "show "no data" when table is empty"
Revert "show "no data" when table is empty"

This reverts commit 8487550abd675cb81f0e3fc29c28bda18b20dcb8.
