%h2 Your Daily Order Report for = @tix.organization.name %h1= @tix.date.to_s(:long) - if ! @tix.rows.empty? %h3 Tickets %table %tr %th Order # %th Total %th Customer %th Details %th.last-child Special Instructions - @tix.rows.each do |row| %tr %td.right= link_to row.id, order_url(id: row.id) %td.right= row.total %td= link_to row.person, person_url(id: row.person_id) %td= row.ticket_details %td.last-child= row.special_instructions %h4 Ticket Total: = @tix.total - else %p There were no orders placed. - if ! @donations.rows.empty? %h3 Donations %table %tr %th Order # %th Donation %th.last-child Customer - @donations.rows.each do |row| %tr %td.right= link_to row.id, order_url(id: row.id) %td.right= row.total %td.last-child= link_to row.person, person_url(id: row.person_id) %h4 Donation Total: = @donations.total - else %p There were no donations made. %h2 Daily Total: = @tix.daily_total %small To turn off this daily email report, = link_to "edit your organization here.", edit_organization_url(@tix.organization) :css .right { text-align: right; } table th { text-align: left; } table td, table th { border-right: 1px solid #999; padding: 8px; } table .last-child { border: none; }