- next_page = nil unless defined?(next_page)
- previous_page = nil unless defined?(previous_page)
%div{:class => ["content", page.theme]}
  #forward-page
    -if next_page
      = link_to "Next page", interactive_page_show_path(next_page)
  #back-page
    -if previous_page
      = link_to "Previous page", interactive_page_show_path(previous_page)
  .title
    = page.lightweight_activity.name
    %p.question= page.name
  .text
    .instructions= page.text
    .questions
      = form_tag(main_app.answers_portal_offering_path) do
        - page.embeddables.each do |e|
          - e_type = e.class.name.underscore
          = render :partial => "#{e_type}/lightweight", :locals => {:embeddable => e}
        = submit_tag "Answer"
  .other
    - page.interactives.each do |interactive|
      - i_type = interactive.class.name.underscore
      = render :partial => "#{i_type}/show", :locals => {:interactive => interactive}

- next_page = nil unless defined?(next_page)
- previous_page = nil unless defined?(previous_page)
%div{:class => ["content", page.theme]}
  #forward-page
    -if next_page
      = link_to "Next page", interactive_page_show_path(next_page)
  #back-page
    -if previous_page
      = link_to "Previous page", interactive_page_show_path(previous_page)
  %h1
    = page.lightweight_activity.name
  %p.question= page.name
  .text
    %p.instructions= page.text
    .questions
      = form_tag(main_app.answers_portal_offering_path) do
        - page.embeddables.each do |e|
          - e_type = e.class.name.underscore
          = render :partial => "#{e_type}/lightweight", :locals => {:embeddable => e}
        = submit_tag "Answer"
  .other
    - page.interactives.each do |interactive|
      - i_type = interactive.class.name.underscore
      = render :partial => "#{i_type}/show", :locals => {:interactive => interactive}
Adjust HAML to create a more semantic structure of content
Adjust HAML to create a more semantic structure of content