An open source, stand-alone, customisable public spending data web app.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 

70 lignes
1.5 KiB

  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)