An open source, stand-alone, customisable public spending data web app.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

преди 14 години
преди 14 години
преди 14 години
преди 14 години
преди 14 години
преди 14 години
преди 14 години
преди 14 години
преди 14 години
преди 14 години
преди 14 години
преди 14 години
преди 14 години
преди 14 години
преди 14 години
преди 14 години
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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= commify(@count)
  27. %td.right= commify(sprintf("%0d", @total))
  28. %td.right= commify(sprintf("%0d", @max))
  29. %td.right= commify(sprintf("%0d", @min))
  30. %td.right= commify(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= commify(sprintf("%0d", payment.amount))
  52. %tr
  53. %td
  54. %td
  55. %td
  56. %td
  57. %strong TOTAL
  58. %td.right= commify(sprintf("%0d", @total))
  59. .clear
  60. <div class="grid_9 noprint">
  61. = haml_partial "comment_header"
  62. <div id="disqus_thread" class="noprint"></div>
  63. <script type="text/javascript">
  64. var disqus_developer = 1;
  65. (function() {
  66. var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
  67. dsq.src = 'http://armchairauditor.disqus.com/embed.js';
  68. (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
  69. })();
  70. </script>
  71. <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript=armchairauditor">comments powered by Disqus.</a></noscript>
  72. <a href="http://disqus.com" class="dsq-brlink noprint">Comments powered by <span class="logo-disqus">Disqus</span></a>
  73. </div>