An open source, stand-alone, customisable public spending data web app.
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

supplier.haml 2.4 KiB

há 14 anos
há 14 anos
há 14 anos
há 14 anos
há 14 anos
há 14 anos
há 14 anos
há 14 anos
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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 Directorate
  41. %th Service
  42. %th.right £
  43. - for payment in @supplier.payments
  44. %tr
  45. %td= payment.d.strftime("%d %b %Y")
  46. %td
  47. %a{ :href => "/payments/#{payment.id}" }
  48. = payment.id
  49. %td
  50. %a{ :href => '/directorates/' + payment.service.directorate.slug }
  51. = payment.service.directorate.name
  52. %td
  53. %a{ :href => '/services/' + payment.service.slug }
  54. = payment.service.name
  55. %td.right= commify(sprintf("%0d", payment.amount))
  56. %tr
  57. %td
  58. %td
  59. %td
  60. %td
  61. %strong TOTAL
  62. %td.right= commify(sprintf("%0d", @total))
  63. .clear
  64. <div class="grid_9 noprint">
  65. = haml_partial "comment_header"
  66. <div id="disqus_thread" class="noprint"></div>
  67. <script type="text/javascript">
  68. var disqus_developer = 1;
  69. (function() {
  70. var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
  71. dsq.src = 'http://armchairauditor.disqus.com/embed.js';
  72. (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
  73. })();
  74. </script>
  75. <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript=armchairauditor">comments powered by Disqus.</a></noscript>
  76. <a href="http://disqus.com" class="dsq-brlink noprint">Comments powered by <span class="logo-disqus">Disqus</span></a>
  77. </div>