An open source, stand-alone, customisable public spending data web app.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

58 行
1.3 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 + " (Service)"
  10. %p.noprint.download
  11. %a{ :href => "/services/#{@service.slug}.csv" }
  12. Download data as CSV
  13. %table
  14. %tr
  15. %th Date
  16. %th Ref.
  17. %th Directorate
  18. %th Supplier
  19. %th.right £
  20. - for payment in @service.payments
  21. %tr
  22. %td= payment.d.strftime("%d %b %Y")
  23. %td.right
  24. %a{ :href => "/payments/#{payment.id}" }
  25. = payment.id
  26. %td
  27. %a{ :href => '/directorates/' + payment.directorate.slug }
  28. = payment.directorate.name
  29. %td
  30. %a{ :href => '/suppliers/' + payment.supplier.slug }
  31. = payment.supplier.name
  32. %td.right= sprintf("%0d", payment.amount)
  33. %tr
  34. %td
  35. %td
  36. %td
  37. %td
  38. %strong TOTAL
  39. %td.right= sprintf("%0d", @total)
  40. %table
  41. %tr
  42. %th.right Count
  43. %th.right Max
  44. %th.right Min
  45. %th.right Average
  46. %tr
  47. %td.right= @count
  48. %td.right= sprintf("%0d", @max)
  49. %td.right= sprintf("%0d", @min)
  50. %td.right= sprintf("%0d", @avg)