= title _('Classroom Syllabus')

#syllabus
  .eight.columns.formatted
    - unless @syllabus.new_record?
      %h3
        = @syllabus.title

      .panel
        %p
          = @syllabus.intro

      = @syllabus.content.html_safe

    - else
      = link_to(_('Update Classroom Syllabus'), edit_syllabus_path, :class => 'syllabus-create')

    - unless @lectures.blank?

      %h3
        = _('Course structure')

      %ul#lectures-tree.hierarchical-list
        = list_lectures_tree(@lectures)


  = render(:partial => 'sidebar')

= title _('Classroom Syllabus')

#syllabus
  .eight.columns.formatted
    - unless @syllabus.new_record?
      %h3
        = @syllabus.title

      .panel
        %p
          = @syllabus.intro

      = @syllabus.content.html_safe

    - else
      %h4
        = _('Not updated yet')
      %hr
        - if can?(:create, @syllabus)
          = link_to(_('Update the syllabus now'), edit_syllabus_path, :class => 'button primary syllabus-create')
        - else
          %p
            = _('None of the classroom collaborators managed to update the syllabus.')
          %p
            = _('Please check back again in a while.')

    - unless @lectures.blank?

      %h3
        %i.left.icon-structure
        = _('Course structure')

      %ul#lectures-tree.hierarchical-list
        = list_lectures_tree(@lectures)


  = render(:partial => 'sidebar')

Update a bit syllabus template.
Update a bit syllabus template.