aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorHumairAK <humair88@hotmail.com>2016-07-21 06:24:24 +0000
committerHumairAK <humair88@hotmail.com>2016-07-21 06:24:24 +0000
commit2549ee68e435b77e7e07d3ea95363268cbfe9164 (patch)
tree8f48f6447a4377f1bc15ae7d73dbab3337044720 /views
parentd694c1a73f77def42c17b58027f046bf9e1af809 (diff)
Added other dependencies for authentication, made minor adjustments to index.js, added templating for exams, will remove dependencie modules later, keep for now
Diffstat (limited to 'views')
-rw-r--r--views/exams.hbs44
1 files changed, 11 insertions, 33 deletions
diff --git a/views/exams.hbs b/views/exams.hbs
index fc9e7d5..5a5955c 100644
--- a/views/exams.hbs
+++ b/views/exams.hbs
@@ -1,40 +1,18 @@
<main id = 'solutions-main'>
<div class = 'search container' id = 'solutions-div'>
- <h4 class='search-head'>Search results for "{{query}}"</h4>
+ <h4 class='search-head'>Search results for "{{query}}"</h4>
+ {{# each result}}
<a href="/questions">
- <section class = 'solutions-card'>
- <h3 class = 'solutions-title'>CSC148 - Introduction to Computer Science</h3>
- <p class = 'solutions-time' ><em>Term: </em>Winter 2015</p>
- <p class = 'exam-instr'><em>Instructors: </em>Fairgrieve and Hangerman</p>
- <p class = 'solutions-type'>Final Examination</p>
- </section>
+ <section class = 'solutions-card'>
+ <h3 class = 'solutions-title'>{{this.title}}</h3>
+ <p class = 'solutions-time' ><em>Term: </em>{{this.term}} {{this.year}}</p>
+ <p class = 'exam-instr'><em>Instructors: </em>
+ {{this.instructors}}
+ </p>
+ <p class = 'solutions-type'>{{result.type}}</p>
+ </section>
</a>
+ {{/each}}
- <a href="/questions">
- <section class = 'solutions-card'>
- <h3 class = 'solutions-title'>CSC148 - Introduction to Computer Science</h3>
- <p class = 'solutions-time' ><em>Term: </em>Fall 2014</p>
- <p class = 'exam-instr'><em>Instructors: </em>Campbell and Fairgrieve</p>
- <p class = 'solutions-type'>Midterm Examination</p>
- </section>
- </a>
-
- <a href="/questions">
- <section class = 'solutions-card'>
- <h3 class = 'solutions-title'>CSC148 - Introduction to Computer Science</h3>
- <p class = 'solutions-time' ><em>Term: </em>Winter 2014</p>
- <p class = 'exam-instr'><em>Instructors: </em>Campbell and Papadopoulou</p>
- <p class = 'solutions-type'>Final Examination</p>
- </section>
- </a>
-
- <a href="/questions">
- <section class = 'solutions-card'>
- <h3 class = 'solutions-title'>CSC148 - Introduction to Computer Science</h3>
- <p class = 'solutions-time' ><em>Term: </em>Fall 2013</p>
- <p class = 'exam-instr'><em>Instructors: </em>Craig and Gries</p>
- <p class = 'solutions-type'>Final Examination</p>
- </section>
- </a>
</div>
</main>