aboutsummaryrefslogtreecommitdiff
path: root/views/exams.hbs
blob: 8b179f3ab857450ae07f96450ccdb871fd87c0f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<main id = 'solutions-main'>
    <div class = 'search container' id = 'solutions-div'>
        <h4 class='search-head'>Search results for "{{query}}"</h4>
        {{# if result }}
            {{# each result}}
                <a href="/questions/{{this.id}}"> <!--- Attaches exam id to url --->
                    <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}}
        {{ else }}
            <h3 class="solutions-title"> No results found. Sorry!</h3>
        {{/if}}
    </div>
</main>