-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcourseLanding.jade
37 lines (37 loc) · 1.78 KB
/
courseLanding.jade
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
extends nav
block content
div.minitron
div.container
h4 CompSci 101
div.container
div.row
div.col-lg-12
h2 Select an exam paper
div.row
div.col-lg-8
if exams
for exam in exams
div.row
div.col-lg-12
if (exam.answered !== exam.questions)
a.btn.btn-default.btn-block.course-button(href="/answer?c=" + course + "&e=" + exam.year + "s" + exam.semester + "&q=" + (+exam.answered+1))
h3 #{exam.type.charAt(0).toUpperCase() + exam.type.slice(1)} Semester #{exam.semester.charAt(0).toUpperCase() + exam.semester.slice(1)} #{exam.year}
p In progress... #{exam.answered}/#{exam.questions} Questions answered
else
a.btn.btn-default.btn-block.course-button(href="/exam?c=" + course + "&e=" + exam.year + "s" + exam.semester, style="border-color:#3c763d;")
//img(src="/images/tick.png", alt="Completed Exam", height="80", width="100", style="float:right;")
h3 #{exam.type.charAt(0).toUpperCase() + exam.type.slice(1)} Semester #{exam.semester.charAt(0).toUpperCase() + exam.semester.slice(1)} #{exam.year}
span.glyphicon.glyphicon-ok(style="float:right;color:#3c763d;")
p Complete: #{exam.answered}/#{exam.questions} Questions answered
div.col-lg-4
div.row
div.col-lg-12
a.btn.btn-default.btn-block.course-button(href="#")
h3 +Add exam
p Submit answers for a new exam
// div.row
div.col-lg-12(style="height:35px")
// div.row
div.col-lg-12
div.col-lg-12(style="border:1px solid;text-align:center;height:300px;")
p Advertising available