testmycode/tmc-server

View on GitHub
app/views/model_solution_token_useds/index.html.erb

Summary

Maintainability
Test Coverage
<p id="notice"><%= notice %></p>

<h1>Listing Model Solution Token Useds</h1>

<table>
  <thead>
    <tr>
      <th>User</th>
      <th>Course</th>
      <th>Exercise name</th>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <% @model_solution_token_useds.each do |model_solution_token_used| %>
      <tr>
        <td><%= model_solution_token_used.user %></td>
        <td><%= model_solution_token_used.course %></td>
        <td><%= model_solution_token_used.exercise_name %></td>
        <td><%= link_to 'Show', model_solution_token_used %></td>
        <td><%= link_to 'Edit', edit_model_solution_token_used_path(model_solution_token_used) %></td>
        <td><%= link_to 'Destroy', model_solution_token_used, method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

<%= link_to 'New Model solution token used', new_model_solution_token_used_path %>