- layout = controller.parent_layout(of_layout: 'course') || controller.current_layout
= render within_layout: layout do
  div.row
    div.col-lg-2.col-md-3.col-sm-4
      nav role="navigation"
        div.collapse.navbar-collapse#course-navigation-navbar
          ul.nav.nav-pills.nav-stacked
            - controller.sidebar.each do |item|
              li
                = link_to(item[:path]) do
                  = item[:title]
                  span.unread
                    = badge(item[:unread]) if item[:unread]

    div.col-lg-10.col-md-9.col-sm-8
      = yield

- layout = controller.parent_layout(of_layout: 'course') || controller.current_layout
= render within_layout: layout do
  div.row
    div.col-lg-2.col-md-3.col-sm-4
      nav role="navigation"
        div.collapse.navbar-collapse#course-navigation-navbar
          ul.nav.nav-pills.nav-stacked
            - controller.sidebar.each do |item|
              li
                = link_to(item[:path]) do
                  = item[:title]
                  span.unread
                    = badge(item[:unread]) if item[:unread] && item[:unread] > 0

    div.col-lg-10.col-md-9.col-sm-8
      = yield

Fix sidebar bubble (should not be displayed when unread count is 0)
Fix sidebar bubble (should not be displayed when unread count is 0)

* Modify course layout

Coursemology/coursemology2,cysjonathan/coursemology2,cysjonathan/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,BenMQ/coursemology2,Coursemology/coursemology2,harryggg/coursemology2,cysjonathan/coursemology2,harryggg/coursemology2,xzhflying/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,xzhflying/coursemology2,xzhflying/coursemology2,harryggg/coursemology2,BenMQ/coursemology2,Coursemology/coursemology2,BenMQ/coursemology2