An open source, stand-alone, customisable public spending data web app.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

service.haml 1.3 KiB

pirms 14 gadiem
pirms 14 gadiem
pirms 14 gadiem
pirms 14 gadiem
pirms 14 gadiem
pirms 14 gadiem
pirms 14 gadiem
pirms 14 gadiem
pirms 14 gadiem
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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)