aboutsummaryrefslogtreecommitdiff
path: root/views/questions.hbs
blob: 48248c2f9cf99ca70b5e53c4090bd9f3d2c07aa4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<main id = 'solutions-main'>
    <div class = 'search container' id = 'solutions-div'>

            <!-- EXAM DETAILS -->

            <a href="http://www.cs.toronto.edu/~fpitt/CSC148/20131/tests/test1-0101.pdf" target='_blank'><img src="assets/images/exam.png" class='exam-img img-responsive exam-info'></a>

            <section class='exam-info'>
                <h3>{{examInfo.courseCode}}</h3>
                <p>{{examInfo.term}} {{examInfo.year}} {{examInfo.type}}</p>
                <p><em>Instructor(s): </em>{{examInfo.instructors}}</p>
                <p><em>Upload date:</em> {{examInfo.uploadDate}}</p>
                <p><em>Uploaded by:</em> {{examInfo.uploader}}</p>
                <p><em>Page count:</em> {{examInfo.pageCount}}</p>
                <p><em>Question count:</em> {{examInfo.questionCount}}</p>
            </section>

            <!-- QUESTION LISTINGS -->

            {{#each query}}
                <a href="/solutions/{{../examInfo.id}}/{{this.q_id}}">
                    <section class = 'solutions-card row'>
                        <div class='pull-left col-sm-8 col-md-8'>
                            <h3 class = 'questions-number'>Question {{this.q_id}}</h3>
                            <p><span class='questions-sol-num'>{{this.count}} solutions, </span> <span class = 'questions-comment'>{{this.comments}} comments</span></p>
                        </div>
                        <div class='pull-right right-arrow'>
                            <img class='rounded' src="/assets/images/right-arrow.png">
                        </div>
                    </section>
                </a>

            {{/each}}



    </div>
</main>