index.haml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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
  16. %a
  17. %i.fi-graph-pie
  18. %span.diskinfo
  19. %li.divider
  20. %li.has-form
  21. %a.button.radius.success= "&#8593; <strong id='up-info'></strong>"
  22. %li.divider
  23. %li.has-form
  24. %a.button.radius= "&#8595; <strong id='down-info'></strong>"
  25. %ul.left
  26. %li
  27. %a.button.radius.alert{href: "#"} Add
  28. %section.main-section{style: "margin: 50px 10px"}
  29. %table{style: "width: 100%;"}
  30. %thead
  31. %tr
  32. %th Torrent
  33. %th Ratio
  34. %th Upload
  35. %th Download
  36. %th Actions
  37. %tbody
  38. - tlist.each do |t|
  39. %tr{data: {:torrent_id => "#{t["hash"]}"}}
  40. %td.name
  41. #{t["name"]}
  42. %span.space.label.secondary.round.right
  43. %td.text-center.ratio
  44. %td.text-center.upspeed
  45. %td.text-center.downspeed
  46. %td.text-center
  47. %a{href: "#", data: {:torrent_id => "#{t["hash"][0,10]}"} }
  48. %i.fi-cloud
  49. |
  50. %a
  51. %i.fi-trash
  52. %a.exit-off-canvas
  53. %script{:src => '/js/vendor/jquery.js'}
  54. %script{:src => '/js/foundation.min.js'}
  55. %script{:src => '/js/notify-combined.min.js'}
  56. %script{:src => '/js/custom.js'}
  57. %script
  58. $(document).foundation();