Commit 3c1d28ab by Braden MacDonald

Address review comments

parent a96a146b
...@@ -57,14 +57,17 @@ ...@@ -57,14 +57,17 @@
<!-- Template for extended feedback: Show extended feedback details when all attempts are used up. --> <!-- Template for extended feedback: Show extended feedback details when all attempts are used up. -->
<script type="text/template" id="xblock-step-links-template"> <script type="text/template" id="xblock-step-links-template">
<% var q, last_question, second_last_question; %>
<ul class="review-list <%= correctness %>-list"> <ul class="review-list <%= correctness %>-list">
<% for (var question in questions) { %> <% for (var question in questions) { %>
<% q = questions[question]; last_question = question == questions.length - 1; second_last_question = question == questions.length - 2; %> <%
var q = questions[question];
var last_question = question == questions.length - 1;
var second_last_question = question == questions.length - 2;
%>
<li> <li>
<a href="#" class="step-link" data-step="<%= q.step %>"><%= <a href="#" class="step-link" data-step="<%= q.step %>"><%=
_.template(gettext("Question {number}"), {number: q.number}, {interpolate: /\{(.+?)\}/g}) _.template(gettext("Question {number}"), {number: q.number}, {interpolate: /\{(.+?)\}/g})
%></a><% if (!last_question) { %><%= (questions.length > 2 ? ", " : "") %><%= (second_last_question ? gettext(" and"): "") %><% } %> %></a><% if (!last_question) { %><%= (questions.length > 2 ? ", " : "") %><%= (second_last_question ? " " + gettext("and"): "") %><% } %>
</li> </li>
<% } %> <% } %>
</ul> </ul>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment