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.
 
 
 
 

71 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 Max £
  22. %th.right Min £
  23. %th.right Average £
  24. %tr
  25. %td.right= @count
  26. %td.right= sprintf("%0d", @max)
  27. %td.right= sprintf("%0d", @min)
  28. %td.right= sprintf("%0d", @avg)
  29. %h3 Payments from the Council
  30. %table
  31. %tr
  32. %th Date
  33. %th Ref.
  34. -#
  35. %th Directorate
  36. %th Service
  37. %th.right £
  38. - for payment in @supplier.payments
  39. %tr
  40. %td= payment.d.strftime("%d %b %Y")
  41. %td
  42. %a{ :href => "/payments/#{payment.id}" }
  43. = payment.id
  44. -#
  45. %td
  46. %a{ :href => '/directorates/' + payment.directorate.slug }
  47. = payment.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. -#
  54. %td
  55. %td
  56. %td
  57. %td
  58. %strong TOTAL
  59. %td.right= sprintf("%0d", @total)