Sha256: 1d42dff6f184795b5d176902699861adbd7c8abc3d64d33f98fd241bb9057927

Contents?: true

Size: 1.5 KB

Versions: 3

Compression:

Stored size: 1.5 KB

Contents

!!!
%html
  %head
    %meta{:charset => "UTF-8"}
    %title Output of rails_best_practices
    :css
      body {
        color: #333;
        background: #eee;
        padding: 0 20px;
      }
      h1 {
        color: ##4E4E4E;
      }
      table {
        background: white;
        border: 1px solid #666;
        border-collapse: collapse;
        margin: 20px 0;
        font-size: 14px;
      }
      table th, table td {
        padding: 4px;
        border: 1px solid #D0D0D0;
      }
      table th {
        background-color: #DFC;
        color: #337022;
      }
      table td.filename {
        color: #ED1556;
      }
      table tr:hover {
        background-color: #FFFFC0;
      }
  %body
    %h1 rails_best_practices output
    %h2
      Please go to
      %a{:href=>"http://rails-bestpractices.com", :target=>"_blank"} http://rails-bestpractices.com
      to see more useful Rails Best Practices.
    %h2
      - if errors.empty?
        No error found. Cool!
      - else
        Found #{errors.size} errors.
    %table
      %tr
        %th Filename
        %th Line Number
        %th Error Message
      - errors.each do |error|
        %tr
          %td.filename
            - if textmate
              %a{:href=>"txmt://open/?url=file://#{File.expand_path(error.filename)}&line=#{error.line_number}"}= error.filename
            - else
              = error.filename
          %td.line-number= error.line_number
          %td.message
            %a{:href=>"#{error.url}", :target=>"_blank"}= error.message

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rails_best_practices-0.7.0 assets/result.html.haml
rails_best_practices-0.6.7 assets/result.html.haml
rails_best_practices-0.6.6 assets/result.html.haml