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.
 
 
 
 

68 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. %th Directorate
  35. %th Service
  36. %th.right £
  37. - for payment in @supplier.payments
  38. %tr
  39. %td= payment.d.strftime("%d %b %Y")
  40. %td
  41. %a{ :href => "/payments/#{payment.id}" }
  42. = payment.id
  43. %td
  44. %a{ :href => '/directorates/' + payment.directorate.slug }
  45. = payment.directorate.name
  46. %td
  47. %a{ :href => '/services/' + payment.service.slug }
  48. = payment.service.name
  49. %td.right= sprintf("%0d", payment.amount)
  50. %tr
  51. %td
  52. %td
  53. %td
  54. %td
  55. %strong TOTAL
  56. %td.right= sprintf("%0d", @total)