An open source, stand-alone, customisable public spending data web app.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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