An open source, stand-alone, customisable public spending data web app.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

service.haml 2.0 KiB

il y a 14 ans
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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>