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.
 
 
 
 

75 line
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. = @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 Summary
  23. %table
  24. %tr
  25. %th.right Payments
  26. %th.right Total
  27. %th.right Max
  28. %th.right Min
  29. %th.right Average
  30. %tr
  31. %td.right= commify(@count)
  32. %td.right= commify(sprintf("£%0d", @total))
  33. %td.right= commify(sprintf("£%0d", @max))
  34. %td.right= commify(sprintf("£%0d", @min))
  35. %td.right= commify(sprintf("£%0d", @avg))
  36. %h3 Suppliers by Spend
  37. %table
  38. %tr
  39. %th Supplier
  40. %th Total £
  41. %th Total %
  42. - for row in @results
  43. %tr
  44. %td
  45. %a{ :href => "/suppliers/#{row['supplier_slug']}" }
  46. = row['supplier_name']
  47. %td.right= commify(sprintf("%0d", row['total']))
  48. %td.right= sprintf("%0.1f", row['total'] / @total * 100)
  49. .clear
  50. <div class="grid_9 noprint">
  51. = haml_partial "comment_header"
  52. <div id="disqus_thread" class="noprint"></div>
  53. <script type="text/javascript">
  54. var disqus_developer = 1;
  55. (function() {
  56. var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
  57. dsq.src = 'http://armchairauditor.disqus.com/embed.js';
  58. (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
  59. })();
  60. </script>
  61. <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript=armchairauditor">comments powered by Disqus.</a></noscript>
  62. <a href="http://disqus.com" class="dsq-brlink noprint">Comments powered by <span class="logo-disqus">Disqus</span></a>
  63. </div>