An open source, stand-alone, customisable public spending data web app.
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 

79 Zeilen
1.8 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
  18. Summary for
  19. = nicedate(@d_start)
  20. to
  21. = nicedate(@d_end)
  22. %table
  23. %tr
  24. %th.right Payments
  25. %th.right Total £
  26. %th.right Max £
  27. %th.right Min £
  28. %th.right Average £
  29. %tr
  30. %td.right= commify(@count)
  31. %td.right= commify(sprintf("%0d", @total))
  32. %td.right= commify(sprintf("%0d", @max))
  33. %td.right= commify(sprintf("%0d", @min))
  34. %td.right= commify(sprintf("%0d", @avg))
  35. %h3 Payments from the Council
  36. %table
  37. %tr
  38. %th Date
  39. %th Ref.
  40. %th Transaction
  41. %th Directorate
  42. %th Service
  43. %th.right £
  44. - for payment in @supplier.payments
  45. %tr
  46. %td= payment.d.strftime("%d %b %Y")
  47. %td
  48. %a{ :href => "/payments/#{payment.id}" }
  49. = payment.id
  50. %td= payment.transaction_id
  51. %td
  52. - unless payment.service.directorate.nil?
  53. %a{ :href => '/directorates/' + payment.service.directorate.slug }
  54. = payment.service.directorate.name
  55. %td
  56. %a{ :href => '/services/' + payment.service.slug }
  57. = payment.service.name
  58. %td.right= commify(sprintf("%0d", payment.amount))
  59. %tr
  60. %td
  61. %td
  62. %td
  63. %td
  64. %strong TOTAL
  65. %td.right= commify(sprintf("%0d", @total))
  66. .clear
  67. = haml :_disqus_comments