index.haml 1.8 KB

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