An open source, stand-alone, customisable public spending data web app.
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

66 lines
1.3 KiB

  1. .grid_12
  2. %ul#breadcrumb
  3. %li.home
  4. %a{ :href => '/'} Home
  5. %li
  6. %a{ :href => '/services' } Services
  7. %li
  8. = @service.name
  9. %h2= @page_title = @service.name
  10. %p
  11. A service in the
  12. %a{ :href => '/directorates/' + @service.directorate.slug }
  13. = @service.directorate.name
  14. Directorate
  15. %p.noprint.download
  16. %a{ :href => "/services/#{@service.slug}.csv" }
  17. Download data as CSV
  18. %h3 Summary
  19. %table
  20. %tr
  21. %th.right Payments
  22. %th.right Max £
  23. %th.right Min £
  24. %th.right Average £
  25. %tr
  26. %td.right= @count
  27. %td.right= sprintf("%0d", @max)
  28. %td.right= sprintf("%0d", @min)
  29. %td.right= sprintf("%0d", @avg)
  30. %h3 Payments to Suppliers
  31. %table
  32. %tr
  33. %th Date
  34. %th Ref.
  35. %th Supplier
  36. %th.right £
  37. - for payment in @service.payments
  38. %tr
  39. %td= payment.d.strftime("%d %b %Y")
  40. %td.right
  41. %a{ :href => "/payments/#{payment.id}" }
  42. = payment.id
  43. %td
  44. %a{ :href => '/suppliers/' + payment.supplier.slug }
  45. = payment.supplier.name
  46. %td.right= sprintf("%0d", payment.amount)
  47. %tr
  48. %td
  49. %td
  50. %td
  51. %strong TOTAL
  52. %td.right= sprintf("%0d", @total)