index.haml 1.8 KB

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