Advertisement
vamsiampolu

Jade template to rendered

Oct 2nd, 2014
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. extends simple
  2.  
  3. block nav
  4. .container-fluid
  5. .navbar-header
  6. button(type='button',data-toggle='collapse',data-target='#collapseNavbar').navbar-toggle
  7. span.icon-bar
  8. span.icon-bar
  9. span.icon-bar
  10. a(href='#').navbar-brand Take Note
  11. .collapse.navbar-collapse#collapseNavbar
  12. form.navbar-form.navbar-left(role='search',method='GET',action='search')
  13. .form-group
  14. label.sr-only(for='search') Search
  15. .input-group
  16. input.form-control(type='text',placeholder='Search',name='searchBox')#searchBox
  17. .form-group
  18. button.btn.btn-default(type='submit')
  19. i.glyphicon.glyphicon-search
  20. ul.nav.navbar-nav.navbar-right
  21. li
  22. a(href='#') Login
  23.  
  24.  
  25. block content
  26. .row
  27. .col-md-9.col-md-push-3
  28. article
  29. header
  30. h1= notebook.title
  31. section
  32. if notebook.notes.length
  33. ul
  34. each note in notebook.notes
  35. .panel.panel-primary
  36. .panel-heading= note.title
  37. .btn-group.btn-group-sm.pull-right
  38. a.btn.btn-success(href='#{edit}')
  39. span.glyphicon.glyphicon-pencil
  40. a.btn.btn-success(href='#{more}')
  41. span.glyphicon.glyphicon-plus
  42. .panel-body
  43. p= note.content
  44. else
  45. .well
  46. p
  47. |You have not created any notes yet.
  48. a.btn.btn-primary(href="/new") Create Note
  49. .col-md-3.col-md-pull-9
  50. aside
  51. .panel.panel-default
  52. .panel-heading= sidebar.title
  53. .panel-body
  54. ul.nav.nav-pills.nav-stacked.sidebar-nav
  55. each item, i in sidebar.items
  56. if !i
  57. li.active: a(href="#")= item
  58. else
  59. li: a(href="#")= item
  60. .panel-footer.clearfix
  61. .pull-right
  62. a.btn.btn-success(href='#')= sidebar.footer
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement