<commit_before><h1>Listing instructors</h1>

<%= form_tag(instructors_path, :method => "get", id: "search-form") do %>
  
  <%= text_field_tag :search, params[:search], placeholder: "Search Instructors" %>
  <%= submit_tag "Search" %>
<% end %>

<table>
  <thead>
    <tr>
      <th>Instructor first</th>
      <th>Instructor last</th>
      <th></th>
      <th></th>
      <th></th>
    </tr>
  </thead>

  <tbody>
    <% @instructors.each do |instructor| %>
      <tr>
        <td><%= instructor.instructor_first %></td>
        <td><%= instructor.instructor_last %></td>
        <td><%= link_to 'Show', instructor %></td>
        <td><%= link_to 'Edit', edit_instructor_path(instructor) %></td>
        <td><%= link_to 'Destroy', instructor, method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

<%= link_to 'New Instructor', new_instructor_path %><commit_msg>Added in new instructor index page<commit_after><!DOCTYPE html>
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="http://getbootstrap.com/favicon.ico">
    <!-- Bootstrap core CSS -->
    <!-- <link href="http://getbootstrap.com/dist/css/bootstrap.min.css" rel="stylesheet"> -->

    <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="http://getbootstrap.com/examples/dashboard/dashboard.css" rel="stylesheet">

  </head>

  <body>
    <nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container-fluid">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="/">FCQ Project</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav navbar-right">
            <li><a href="/">Home</a></li>
            <li><a href="/help">Help</a></li>
          </ul>
          <form class="navbar-form navbar-right">
          <%= text_field_tag :search, params[:search], placeholder: "Search" %>
          </form>
        </div>
      </div>
    </nav>


     <div class="container-fluid">
          <div class="row">
            <div class="col-sm-3 col-md-2 sidebar">
              <ul class="nav nav-sidebar">
                <li><a href="/departments">Departments<span class="sr-only">(current)</span></a></li>
                <li><a href="/courses">Courses<span class="sr-only">(current)</span></a></li>
              </ul>


              <ul class="nav nav-sidebar">
                <li><a>Earliest FCQ: </a></li>
                <li><a>Latest FCQ: </a></li>
                <!-- TODO: These insturctor groups need to be translated -->
              </ul>
      </div>

    <title>Instructors</title>
    <div class="container-fluid">
      <div class="row">
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">

          <h2 class="sub-header">Instructors</h2>
          <div class="table-responsive">
            <table class="table table-striped">

              <thead>
                <tr>
                  <th>Instructor First</th>
                  <th>Instructor Last</th>
                  <th>Instructor Type</th>
                  <th>Department</th>
                </tr>
              </thead>
              
              <tbody>
              <% @instructors.each do |instructor| %>
                <tr>
                  <td><%= link_to instructor.instructor_first, instructor %></td>
                  <td><%= link_to instructor.instructor_last, instructor %></td>
                  <td>TODO</td>
                  <td>TODO</td>
                </tr>
              </tbody>
              <% end %>

            </table>
          </div>
        </div>
      </div>
    </div>
{'fraction_non_alphanumeric': 0.18605179463880053, 'fraction_numerical': 0.003861880963198546, 'mean_word_length': 2.0854940434477927, 'pattern_counts': {'":': 0, '<': 170, '<?xml version=': 0, '>': 171, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6701971', 'n_tokens_mistral': 1440, 'n_tokens_neox': 1350, 'n_words': 267}