Sha256: 7b092f01372cfee85eb5377baa008099d2930ee0343f35ac05d1f4ab91fbe42c

Contents?: true

Size: 1.41 KB

Versions: 12

Compression:

Stored size: 1.41 KB

Contents

!!!
%html
  %head
    %meta{:content => "text/html; charset=UTF-8", "http-equiv" => "Content-Type"}/
  %body{:style => "font-family: 'Helvetica Neue', Arial, Helvetica; font-size: 14px; color: #333;"}
    %p= link_to "View", query_url(@check.query_id, host: Blazer.host)
    - if @error
      %p= @error
    - elsif @rows_count > 0 && @check_type == "bad_data"
      %p
        - if @rows_count <= 10
          = pluralize(@rows_count, "row")
        - else
          Showing 10 of #{@rows_count} rows
      %table{:style => "width: 100%; border-spacing: 0; border-collapse: collapse;"}
        %thead
          %tr
            - @columns.first(5).each do |column|
              %th{:style => "padding: 8px; line-height: 1.4; text-align: left; vertical-align: bottom; border-bottom: 2px solid #ddd; width: #{(100 / @columns.size).round(2)}%;"}
                = column
        %tbody
          - @rows.first(10).each do |row|
            %tr
              - @columns.first(5).each_with_index do |column, i|
                %td{:style => "padding: 8px; line-height: 1.4; vertical-align: top; border-top: 1px solid #ddd;"}
                  - value = row[i]
                  - if @column_types[i] == "time" && value.to_s.length > 10
                    - value = Time.parse(value).in_time_zone(Blazer.time_zone) rescue value
                  = value
      - if @columns.size > 5
        %p{:style => "color: #999;"} Only first 5 columns shown

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
sql-jarvis-2.1.11 app/views/blazer/check_mailer/state_change.html.haml
sql-jarvis-2.1.10 app/views/blazer/check_mailer/state_change.html.haml
sql-jarvis-2.1.9 app/views/blazer/check_mailer/state_change.html.haml
sql-jarvis-2.1.8 app/views/blazer/check_mailer/state_change.html.haml
sql-jarvis-2.1.7 app/views/blazer/check_mailer/state_change.html.haml
sql-jarvis-2.1.6 app/views/blazer/check_mailer/state_change.html.haml
sql-jarvis-2.1.5 app/views/blazer/check_mailer/state_change.html.haml
sql-jarvis-2.1.4 app/views/blazer/check_mailer/state_change.html.haml
sql-jarvis-2.1.3 app/views/blazer/check_mailer/state_change.html.haml
sql-jarvis-2.1.2 app/views/blazer/check_mailer/state_change.html.haml
sql-jarvis-2.1.1 app/views/blazer/check_mailer/state_change.html.haml
sql-jarvis-2.1 app/views/blazer/check_mailer/state_change.html.haml