.grid_12 %ul#breadcrumb %li.home %a{ :href => '/'} Home %li %a{ :href => '/directorates' } Directorates %li = @directorate.name %h2= @page_title = @directorate.name + " Directorate" %table %tr %th Date %th Ref. %th Service %th Supplier %th.right £ - for payment in @directorate.payments %tr %td= payment.d.strftime("%d %b %Y") %td %a{ :href => "/payments/#{payment.id}" } = payment.id %td %a{ :href => '/services/' + payment.service.slug } = payment.service.name %td %a{ :href => '/suppliers/' + payment.supplier.slug } = payment.supplier.name %td.right= sprintf("%0d", payment.amount) %tr %td %td %td %strong TOTAL %td.right= sprintf("%0d", @total) %td