An open source, stand-alone, customisable public spending data web app.
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 

84 rader
2.1 KiB

  1. .grid_12
  2. %ul#breadcrumb
  3. %li.home
  4. %a{ :href => '/'} Home
  5. %li
  6. %a{ :href => '/services' } Services
  7. %li
  8. = @service.name
  9. %h2= @page_title = @service.name
  10. %p
  11. A service in the
  12. %a{ :href => '/directorates/' + @service.directorate.slug }
  13. = @service.directorate.name
  14. Directorate
  15. %p.noprint
  16. %a{ :href => "/services/#{@service.slug}/payments" }
  17. Payments to Suppliers details for
  18. = @service.name
  19. »
  20. .clear
  21. .grid_9
  22. %h3
  23. Summary for
  24. = nicedate(@d_start)
  25. to
  26. = nicedate(@d_end)
  27. %table
  28. %tr
  29. %th.right Payments
  30. %th.right Total
  31. %th.right Max
  32. %th.right Min
  33. %th.right Average
  34. %tr
  35. %td.right= commify(@count)
  36. %td.right= commify(sprintf("£%0d", @total))
  37. %td.right= commify(sprintf("£%0d", @max))
  38. %td.right= commify(sprintf("£%0d", @min))
  39. %td.right= commify(sprintf("£%0d", @avg))
  40. %h3
  41. Suppliers by Spend for
  42. = nicedate(@d_start)
  43. to
  44. = nicedate(@d_end)
  45. %table
  46. %tr
  47. %th Supplier
  48. %th Total £
  49. %th Total %
  50. - for row in @results
  51. %tr
  52. %td
  53. %a{ :href => "/suppliers/#{row['supplier_slug']}" }
  54. = row['supplier_name']
  55. %td.right= commify(sprintf("%0d", row['total']))
  56. %td.right= sprintf("%0.1f", row['total'] / @total * 100)
  57. .clear
  58. <div class="grid_9 noprint">
  59. = haml_partial "comment_header"
  60. <div id="disqus_thread" class="noprint"></div>
  61. <script type="text/javascript">
  62. var disqus_developer = 1;
  63. (function() {
  64. var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
  65. dsq.src = 'http://armchairauditor.disqus.com/embed.js';
  66. (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
  67. })();
  68. </script>
  69. <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript=armchairauditor">comments powered by Disqus.</a></noscript>
  70. <a href="http://disqus.com" class="dsq-brlink noprint">Comments powered by <span class="logo-disqus">Disqus</span></a>
  71. </div>