Commit 270f5dec by Muhammad Shoaib

moved the scope of the if condition.

parent 1a8fde10
<div class="wrapper-content wrapper"> <div class="wrapper-content wrapper">
<% var is_proctored_attempts = proctored_exam_attempts.length !== 0 %>
<% if (is_proctored_attempts) { %>
<section class="content"> <section class="content">
<div class="top-header"> <div class="top-header">
<div class='search-attempts'> <div class='search-attempts'>
...@@ -75,8 +77,6 @@ ...@@ -75,8 +77,6 @@
</ul> </ul>
<div class="clearfix"></div> <div class="clearfix"></div>
</div> </div>
<% var is_proctored_attempts = proctored_exam_attempts.length !== 0 %>
<% if (is_proctored_attempts) { %>
<table class="exam-attempts-table"> <table class="exam-attempts-table">
<thead> <thead>
<tr class="exam-attempt-headings"> <tr class="exam-attempt-headings">
...@@ -119,6 +119,10 @@ ...@@ -119,6 +119,10 @@
<% }); %> <% }); %>
</tbody> </tbody>
</table> </table>
<%} %>
</section> </section>
<% } else { %>
<p> No exam results found.
<% } %>
</div> </div>
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