brokenfingers/Fabric_Manager

View on GitHub
app/views/records/_transactions.html.haml

Summary

Maintainability
Test Coverage
/ Render the list of transactions
%table.table.table-hover
  %thead
    %th Input Date
    %th Meters Sold
    %th Profit
    %th Price Per Meter
    %th Trans. Year
    %th Trans. Month
    %th Trans. Day
  %tbody
    - if @records.any?
      - @records.each do |record|
        %tr
          %td= "#{record.month}/#{record.day}/#{record.year}"
          - record.content.values.each do |value|
            %td= value