%h1 Listing questions

%table#question-table
  %thead
    %tr
      %th Creator
      %th Lectures
      %th Actions
      %th Topics

  %tbody
    - @questions.each do |question|
      %tr
        %td= get_user(question.user_id).username
        %td= question.all_lectures
        %td
          = link_to 'Show', question
          \-
          = link_to 'Edit', edit_question_path(question)
          \-
          = link_to 'Destroy', question, :method => :delete, :data => { :confirm => 'Are you sure?' }
        %td= question.all_topics

%br

- if is_instructor?
  = link_to 'New Multiple Choice Questions', new_question_path
  \|
  = link_to 'New Short Answer Question', short_question_path


%h1 Listing questions

%table#question-table
  %thead
    %tr
      %th Creator
      %th Lectures
      %th Topics
      %th Content
      %th Actions

  %tbody
    - @questions.each do |question|
      %tr
        %td= get_user(question.user_id).username
        %td= question.all_lectures
        %td= question.all_topics
        %td= question.content
        %td
          = link_to 'Show', question
          \-
          = link_to 'Edit', edit_question_path(question)
          \-
          = link_to 'Destroy', question, :method => :delete, :data => { :confirm => 'Are you sure?' }

%br

- if is_instructor?
  = link_to 'New Multiple Choice Questions', new_question_path
  \|
  = link_to 'New Short Answer Question', short_question_path


Reorder cols in question list and add content col
Reorder cols in question list and add content col

Adding the question content will make sure it's included in search.
