An open source, stand-alone, customisable public spending data web app.
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

68 linhas
1.4 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 Total £
  23. %th.right Max £
  24. %th.right Min £
  25. %th.right Average £
  26. %tr
  27. %td.right= @count
  28. %td.right= sprintf("%0d", @total)
  29. %td.right= sprintf("%0d", @max)
  30. %td.right= sprintf("%0d", @min)
  31. %td.right= sprintf("%0d", @avg)
  32. %h3 Payments to Suppliers
  33. %table
  34. %tr
  35. %th Date
  36. %th Ref.
  37. %th Supplier
  38. %th.right £
  39. - for payment in @service.payments
  40. %tr
  41. %td= payment.d.strftime("%d %b %Y")
  42. %td.right
  43. %a{ :href => "/payments/#{payment.id}" }
  44. = payment.id
  45. %td
  46. %a{ :href => '/suppliers/' + payment.supplier.slug }
  47. = payment.supplier.name
  48. %td.right= sprintf("%0d", payment.amount)
  49. %tr
  50. %td
  51. %td
  52. %td
  53. %strong TOTAL
  54. %td.right= sprintf("%0d", @total)