+++ /dev/null
-<%- @title = "判定" -%>
-<%- content_for(:script) do -%>
- <%= javascript_include_tag "ASCIIMathML" %>
-<%- end -%>
-<h2><%= @title %></h2>
-
-<table class="results">
- <thead>
- <tr>
- <th> </th>
- <th>あなたの答え</th>
- <th>正しい答え</th>
- <th>判定</th>
- </tr>
- </thead>
- <tbody>
- <%- @results.each_with_index do |result, index| -%>
- <tr>
- <td><%=h index+1 %></td>
- <td><%=h result.answer %></td>
- <td><%=h result.example_solution %></td>
- <td><%= judgement(result.correct?) %></td>
- </tr>
- <%- end -%>
- </tbody>
-</table>
-
-<%- unless @results.empty? -%>
- <%- if @results.all?(&:correct?) -%>
- <p>全問正解です。おめでとう!</p>
- <%- else -%>
- <p>まちがいがあります。</p>
- <%- end -%>
-<%- end -%>