Sha256: a136f6ef841e7eb6f0853da28c368db8746498ef677752223cc7fd7cfbe90b4f

Contents?: true

Size: 1.48 KB

Versions: 23

Compression:

Stored size: 1.48 KB

Contents

%h1.title
  = t('recapitulation')
- if @recapitulation_matrix.present?
  - label_cols = @recapitulation_matrix.shift
  %table{:border => "0", :cellpadding => "0", :cellspacing => "0"}
    %tr
      - label_cols.each_with_index do |label_col, i|
        - if i == 0
          %th.label
            = label_col
        - else
          %th
            = label_col
    - @recapitulation_matrix.each do |row|
      %tr
        - row.each_with_index do |cell, i|
          - if i == 0
            %td.label
              = strip_tags(cell.to_s)
          - else
            %td
              = strip_tags(cell.to_s)

%style{:type => "text/css"}
  :css 
    table{
      border-collapse: collapse;
      border: 0;
      font-size: 10px;
      color: #111;
      margin: 0;
    }
    tr{
      border: 0;
      margin: 0;
    }
    th{
      margin: 0;
      padding: 7px 15px;  
      font-weight: bold;
      color: #111;
      background: #F1F1F1; 
      border: 1px solid #F0F0F0;
      border-left: 0;
      border_bottom: 2px solid #cecece;
    }
    th.label{
      border-left: 1px solid #F0F0F0;
    }
    td{
      margin: 0;
      padding: 7px 10px; 
      background: #F8F8F8;
      border: 0;
      border-bottom: 1px solid #F0F0F0;
      border-right: 1px solid #F0F0F0;
      color: #444;
      text-align: center;
    }
    tr:nth-child(2n) td{ 
      background: #fff;
    }
    td.label{ 
      text-align :left;
      font-weight: bold;
      color: #111;
      border-left: 1px solid #F0F0F0;
    }

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
rich_table_component-0.0.30 app/views/application/recapitulation.pdf.haml
rich_table_component-0.0.29 app/views/application/recapitulation.pdf.haml
rich_table_component-0.0.28 app/views/application/recapitulation.pdf.haml
rich_table_component-0.0.27 app/views/application/recapitulation.pdf.haml
rich_table_component-0.0.26 app/views/application/recapitulation.pdf.haml
rich_table_component-0.0.24 app/views/application/recapitulation.pdf.haml
rich_table_component-0.0.22 app/views/application/recapitulation.pdf.haml
rich_table_component-0.0.21 app/views/application/recapitulation.pdf.haml
rich_table_component-0.0.18 app/views/application/recapitulation.pdf.haml
rich_table_component-0.0.17 app/views/application/recapitulation.pdf.haml
rich_table_component-0.0.16 app/views/application/recapitulation.pdf.haml
rich_table_component-0.0.15 app/views/application/recapitulation.pdf.haml
rich_table_component-0.0.14 app/views/application/recapitulation.pdf.haml
rich_table_component-0.0.13 app/views/application/recapitulation.pdf.haml
rich_table_component-0.0.10 app/views/application/recapitulation.pdf.haml
rich_table_component-0.0.9 app/views/application/recapitulation.pdf.haml
rich_table_component-0.0.8 app/views/application/recapitulation.pdf.haml
rich_table_component-0.0.7 app/views/application/recapitulation.pdf.haml
rich_table_component-0.0.6 app/views/application/recapitulation.pdf.haml
rich_table_component-0.0.5 app/views/application/recapitulation.pdf.haml