An open source, stand-alone, customisable public spending data web app.
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 

69 líneas
2.0 KiB

  1. .grid_12
  2. %ul#breadcrumb
  3. %li.home
  4. %a{ :href => '/'} Home
  5. %li
  6. %a{ :href => '/services' } Services
  7. %li
  8. %a{ :href => "/services/#{@service.slug}" }
  9. = @service.name
  10. %li Payments to Suppliers
  11. %h2= @page_title = "#{@service.name}: Payments to Suppliers"
  12. %p
  13. A service in the
  14. %a{ :href => '/directorates/' + @service.directorate.slug }
  15. = @service.directorate.name
  16. Directorate
  17. %p.noprint
  18. %a{ :href => "/services/#{@service.slug}" }
  19. « Suppliers by Spend summary for
  20. = @service.name
  21. %p.noprint.download
  22. %a{ :href => "/services/#{@service.slug}/payments.csv" }
  23. Download data as CSV
  24. %table
  25. %tr
  26. %th Date
  27. %th Ref.
  28. %th Supplier
  29. %th.right £
  30. - for payment in @service.payments
  31. %tr
  32. %td= payment.d.strftime("%d %b %Y")
  33. %td.right
  34. %a{ :href => "/payments/#{payment.id}" }
  35. = payment.id
  36. %td
  37. %a{ :href => '/suppliers/' + payment.supplier.slug }
  38. = payment.supplier.name
  39. %td.right= commify(sprintf("%0d", payment.amount))
  40. %tr
  41. %td
  42. %td
  43. %td
  44. %strong TOTAL
  45. %td.right= commify(sprintf("%0d", @total))
  46. .clear
  47. <div class="grid_9 noprint">
  48. = haml_partial "comment_header"
  49. <div id="disqus_thread" class="noprint"></div>
  50. <script type="text/javascript">
  51. var disqus_developer = 1;
  52. (function() {
  53. var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
  54. dsq.src = 'http://armchairauditor.disqus.com/embed.js';
  55. (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
  56. })();
  57. </script>
  58. <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript=armchairauditor">comments powered by Disqus.</a></noscript>
  59. <a href="http://disqus.com" class="dsq-brlink noprint">Comments powered by <span class="logo-disqus">Disqus</span></a>
  60. </div>