index.haml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. -# coding: utf-8
  2. .off-canvas-wrap
  3. .inner-wrap
  4. .fixed
  5. %nav.top-bar
  6. %ul.title-area
  7. %li.name
  8. %h1
  9. %a{href: "#"} rSeed
  10. %li.toggle-topbar.menu-icon
  11. %a{href: "#"}
  12. %span Menu
  13. %section.top-bar-section
  14. %ul.right
  15. %li.has-form
  16. %a.button.radius.success= "&#8593; <strong id='up-info'></strong>"
  17. %li.divider
  18. %li.has-form
  19. %a.button.radius= "&#8595; <strong id='down-info'></strong>"
  20. %ul.left
  21. %li
  22. %a.button.radius.alert{href: "#"} Add
  23. %section.main-section{style: "margin: 50px 10px"}
  24. %table{style: "width: 100%;"}
  25. %thead
  26. %tr
  27. %th Torrent
  28. %th Ratio
  29. %th Upload
  30. %th Download
  31. %th Publish
  32. %tbody
  33. - tlist.each do |t|
  34. %tr{data: {:torrent_id => "#{t["hash"]}"}}
  35. %td
  36. %h5= t["name"]
  37. %td.text-center= "#{t["ratio"].to_f/1000}"
  38. %td.text-center= "#{t["up"].to_i/1024} ko/s"
  39. %td.text-center= "#{t["down"].to_i/1024} ko/s"
  40. %td.text-center
  41. .button-bar
  42. %ul.button-group.radius
  43. / %li
  44. / %a.tiny.button.alert{href: "#"} &#10060;
  45. %li
  46. %a{href: "#", data: {:torrent_id => "#{t["hash"][0,10]}"} } Share
  47. %a.exit-off-canvas
  48. %script{:src => '/js/vendor/jquery.js'}
  49. %script{:src => '/js/foundation.min.js'}
  50. %script{:src => '/js/notify-combined.min.js'}
  51. %script{:src => '/js/custom.js'}
  52. %script
  53. $(document).foundation();