foodsoft/app/views/finance/financial_links/show.html.haml

24 lines
550 B
Plaintext
Raw Normal View History

- title t('.title', number: @financial_link.id)
%table.table.table-striped
%thead
%tr
%th= t '.date'
%th= t '.type'
%th= t '.description'
%th= t '.amount'
%tbody
- @items.each do |item|
%tr
%td
- if item[:link_to]
= link_to format_date(item[:date]), item[:link_to]
- else
= format_date item[:date]
%td= item[:type]
%td= item[:description]
2018-09-16 12:05:39 +02:00
%td.numeric{style: 'width:5em'}= format_currency item[:amount]
%p
= @financial_link.note